Fixed memleak in plugin unloading
authorMartin Willi <martin@revosec.ch>
Mon, 10 Oct 2011 12:17:34 +0000 (14:17 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 14 Oct 2011 08:05:47 +0000 (10:05 +0200)
src/libstrongswan/plugins/plugin_loader.c

index bf57dc1..994e4df 100644 (file)
@@ -511,6 +511,7 @@ METHOD(plugin_loader_t, unload, void,
        {
                this->plugins->insert_first(this->plugins, entry);
        }
+       list->destroy(list);
        while (this->plugins->get_count(this->plugins))
        {
                enumerator = this->plugins->create_enumerator(this->plugins);