aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-02-12 16:52:11 +0100
committerMichael Mann <mmann78@netscape.net>2017-02-18 14:13:26 +0000
commit64d0133e8811102f153253e42385d992da072911 (patch)
tree8b5445fa759be697bb371f8a7cdac0fc64e4008e /wsutil
parentf792625b1df21a6fb6bdf5dff6a1c7bc4019e34d (diff)
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>
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/plugins.c9
1 files changed, 9 insertions, 0 deletions
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 */