Explorar el Código

secfilter: free initial struct of shared memory on mod_destroy

Victor Seva hace 6 años
padre
commit
eb374d7167
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/modules/secfilter/secfilter.c

+ 2 - 0
src/modules/secfilter/secfilter.c

@@ -664,6 +664,8 @@ static void mod_destroy(void)
 	free_data();
 	/* Destroy lock */
 	lock_destroy(&secf_data->lock);
+	shm_free(secf_data);
+	secf_data = NULL;
 }