From 64d0133e8811102f153253e42385d992da072911 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Sun, 12 Feb 2017 16:52:11 +0100 Subject: plugins: free list on cleanup. Change-Id: Idff606297f72238f8539cb00ea394ee80fcb502c Reviewed-on: https://code.wireshark.org/review/20074 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- wsutil/plugins.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wsutil/plugins.c b/wsutil/plugins.c index 2e8b7dcfe8..73d79f4b8e 100644 --- a/wsutil/plugins.c +++ b/wsutil/plugins.c @@ -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 */ -- cgit v1.2.3