diff options
Diffstat (limited to 'epan')
-rw-r--r-- | epan/epan.c | 2 | ||||
-rw-r--r-- | epan/srt_table.c | 6 | ||||
-rw-r--r-- | epan/srt_table.h | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/epan/epan.c b/epan/epan.c index a01e417c9a..f1451940f6 100644 --- a/epan/epan.c +++ b/epan/epan.c @@ -63,6 +63,7 @@ #include "dissector_filters.h" #include "conversation_table.h" #include "reassemble.h" +#include "srt_table.h" #ifdef HAVE_LUA #include <lua.h> @@ -224,6 +225,7 @@ epan_cleanup(void) stat_tap_table_cleanup(); follow_cleanup(); disabled_protos_cleanup(); + cleanup_srt_table(); #ifdef HAVE_LUA wslua_cleanup(); #endif diff --git a/epan/srt_table.c b/epan/srt_table.c index 63d58cca20..f4da2811b1 100644 --- a/epan/srt_table.c +++ b/epan/srt_table.c @@ -309,6 +309,12 @@ add_srt_table_data(srt_stat_table *rst, int indx, const nstime_t *req_time, pack time_stat_update(&rp->stats, &delta, pinfo); } +void +cleanup_srt_table(void) +{ + g_slist_free_full(registered_srt_tables, g_free); +} + /* * Editor modelines * diff --git a/epan/srt_table.h b/epan/srt_table.h index cc407d7d2d..9cd6e154ec 100644 --- a/epan/srt_table.h +++ b/epan/srt_table.h @@ -220,6 +220,9 @@ WS_DLL_PUBLIC void init_srt_table_row(srt_stat_table *rst, int proc_index, const */ WS_DLL_PUBLIC void add_srt_table_data(srt_stat_table *rst, int proc_index, const nstime_t *req_time, packet_info *pinfo); +/** Clean internal structures + */ +extern void cleanup_srt_table(void); #ifdef __cplusplus } |