plugins: free list on cleanup.

Change-Id: Idff606297f72238f8539cb00ea394ee80fcb502c
Reviewed-on: https://code.wireshark.org/review/20074
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Dario Lombardo 2017-02-12 16:52:11 +01:00 committed by Michael Mann
parent f792625b1d
commit 64d0133e88
1 changed files with 9 additions and 0 deletions

View File

@ -426,6 +426,12 @@ plugins_dump_all(void)
plugins_get_descriptions(print_plugin_description, NULL);
}
static void
free_plugin_type(gpointer p, gpointer user_data _U_)
{
g_free(p);
}
void
plugins_cleanup(void)
{
@ -447,6 +453,9 @@ plugins_cleanup(void)
g_free(prev->name);
g_free(prev);
g_slist_foreach(plugin_types, free_plugin_type, NULL);
g_slist_free(plugin_types);
}
#endif /* HAVE_PLUGINS */