Valgrind messages are obscur when the plugins are unloaded. This patch
adds a macro that can be used to desactivate unloading. To use it, you
have to specify 'CPPFLAGS=-DDEBUG_VALGRIND' on configure line.
}
}
+#ifndef DEBUG_VALGRIND
static void unload_plugins()
{
struct ulogd_plugin_handle *ph, *nph;
free(ph);
}
}
+#endif
static void stop_stack()
{
stop_stack();
+#ifndef DEBUG_VALGRIND
unload_plugins();
+#endif
if (logfile != NULL && logfile != stdout) {
fclose(logfile);