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:
parent
a567a17595
commit
cf6de2f6fd
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue