summaryrefslogtreecommitdiff
path: root/epan/conversation_table.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-01-20 14:52:05 +0100
committerMichael Mann <mmann78@netscape.net>2017-01-21 00:27:25 +0000
commitd020990f0356f4793e00209ae99e9f2dd7b843c9 (patch)
tree933ddfc7a9a7f13fc862f3d047a853956985ed3b /epan/conversation_table.c
parentfecf0d847e012bf4e73aa66da02166774acba65d (diff)
downloadwireshark-d020990f0356f4793e00209ae99e9f2dd7b843c9.tar.gz
conversation_table: add cleanup function.
Change-Id: Icea963384c16b1ad5387a885219d0621b470181b Reviewed-on: https://code.wireshark.org/review/19699 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/conversation_table.c')
-rw-r--r--epan/conversation_table.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/epan/conversation_table.c b/epan/conversation_table.c
index db6e972aab..f64b36694d 100644
--- a/epan/conversation_table.c
+++ b/epan/conversation_table.c
@@ -828,6 +828,19 @@ add_hostlist_table_data(conv_hash_t *ch, const address *addr, guint32 port, gboo
}
}
+static void
+ct_table_free(gpointer p, gpointer user_data _U_)
+{
+ g_free(p);
+}
+
+void
+conversation_table_cleanup(void)
+{
+ g_slist_foreach(registered_ct_tables, ct_table_free, NULL);
+ g_slist_free(registered_ct_tables);
+}
+
/*
* Editor modelines
*