diff options
author | Dario Lombardo <lomato@gmail.com> | 2017-01-18 14:01:06 +0100 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2017-01-18 20:55:11 +0000 |
commit | 37f4e42e98b0a57d709d5f87400cc1b2b0dea25f (patch) | |
tree | 2eb1780caf8e0bf9a3dc57d5dac28664a084cfc4 /epan/packet.c | |
parent | ddb0f7d23c5b6d00592e7046577dd16a6f29d015 (diff) |
packet: free postseq_cleanup_routines list.
Change-Id: Ic1972399b706407ce8f15a3e554f1304a36d1009
Reviewed-on: https://code.wireshark.org/review/19663
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/packet.c')
-rw-r--r-- | epan/packet.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/epan/packet.c b/epan/packet.c index d0e4efb7bf..ce855aff71 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -127,6 +127,12 @@ static GHashTable *depend_dissector_lists = NULL; static GSList *init_routines = NULL; static GSList *cleanup_routines = NULL; +/* Allow protocols to register a "cleanup" routine to be + * run after the initial sequential run through the packets. + * Note that the file can still be open after this; this is not + * the final cleanup. */ +static GSList *postseq_cleanup_routines; + static void destroy_depend_dissector_list(void *data) { @@ -220,6 +226,7 @@ packet_cleanup(void) { g_slist_free(init_routines); g_slist_free(cleanup_routines); + g_slist_free(postseq_cleanup_routines); g_hash_table_destroy(dissector_tables); g_hash_table_destroy(registered_dissectors); g_hash_table_destroy(depend_dissector_lists); @@ -323,12 +330,6 @@ cleanup_dissection(void) host_name_lookup_cleanup(); } -/* Allow protocols to register a "cleanup" routine to be - * run after the initial sequential run through the packets. - * Note that the file can still be open after this; this is not - * the final cleanup. */ -static GSList *postseq_cleanup_routines; - void register_postseq_cleanup_routine(void_func_t func) { |