forked from osmocom/wireshark
srt_table: add cleanup function.
Change-Id: I8d1e9d587f7d47a9064d7b2e0c89f31dc41854ea Reviewed-on: https://code.wireshark.org/review/19946 Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
6311657ff9
commit
92601c411a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue