1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

valgrind: fix memory leak

This commit is contained in:
Steffen Vogel 2017-04-24 19:27:27 +02:00
parent a567a17595
commit cf6de2f6fd

View file

@ -11,6 +11,11 @@
/** Global list of all known plugins */
struct list plugins = LIST_INIT();
__attribute__((destructor(999))) static void __dtor_plugins()
{
list_destroy(&plugins, NULL, false);
}
int plugin_init(struct plugin *p)
{
assert(p->state == STATE_DESTROYED);