aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-6lowpan.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-01-20 16:17:10 +0100
committerMichael Mann <mmann78@netscape.net>2017-01-20 18:30:16 +0000
commit98718aa10704b07009b88954d606064767da1369 (patch)
tree0a93e7640fd8f4849ba661f6a685ba887f85f5c1 /epan/dissectors/packet-6lowpan.c
parent6afcb1133a0ab76f493a343e4da8542c5f88f38f (diff)
6lowpan: add shutdown routine.
Change-Id: I1e324f9d7fdf4d96d8d9d53cbf1932458a2ea1a5 Reviewed-on: https://code.wireshark.org/review/19703 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-6lowpan.c')
-rw-r--r--epan/dissectors/packet-6lowpan.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/dissectors/packet-6lowpan.c b/epan/dissectors/packet-6lowpan.c
index 8cd3c4f01a..461e82d7d8 100644
--- a/epan/dissectors/packet-6lowpan.c
+++ b/epan/dissectors/packet-6lowpan.c
@@ -2582,6 +2582,12 @@ dissect_6lowpan_unknown(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
call_data_dissector(data_tvb, pinfo, proto_tree_get_root(tree));
} /* dissect_6lowpan_unknown */
+static void
+proto_shutdown_6lowpan(void)
+{
+ g_hash_table_destroy(lowpan_context_table);
+}
+
/*FUNCTION:------------------------------------------------------
* NAME
* proto_register_6lowpan
@@ -2880,6 +2886,7 @@ proto_register_6lowpan(void)
/* Register the dissector init function */
register_init_routine(proto_init_6lowpan);
register_cleanup_routine(proto_cleanup_6lowpan);
+ register_shutdown_routine(proto_shutdown_6lowpan);
/* Initialize the context preferences. */
memset((gchar*)lowpan_context_prefs, 0, sizeof(lowpan_context_prefs));