summaryrefslogtreecommitdiff
path: root/epan/conversation_table.c
diff options
context:
space:
mode:
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
*