summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-01-22 21:25:13 +0100
committerDario Lombardo <lomato@gmail.com>2017-01-24 11:26:24 +0000
commitd284cfd4a622922f37bd964575b7d3a0e78b7db5 (patch)
tree990c7cd3d29b6cb3fc8b99be1b3d29f89a0d3595
parent7b69c8702b30e76189a652b7853643fdbc506a22 (diff)
downloadwireshark-d284cfd4a622922f37bd964575b7d3a0e78b7db5.tar.gz
dvbci: add shutdown routine.
Change-Id: I3f950ce227818b6dae11ac89e4a8ec636294a6ec Reviewed-on: https://code.wireshark.org/review/19740 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Dario Lombardo <lomato@gmail.com> Tested-by: Dario Lombardo <lomato@gmail.com>
-rw-r--r--epan/dissectors/packet-dvbci.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dvbci.c b/epan/dissectors/packet-dvbci.c
index 8593c4f2f5..8e545e5a71 100644
--- a/epan/dissectors/packet-dvbci.c
+++ b/epan/dissectors/packet-dvbci.c
@@ -5114,6 +5114,14 @@ dissect_dvbci(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U
return packet_len;
}
+static void
+dvbci_shutdown(void)
+{
+ if (spdu_table)
+ g_hash_table_destroy(spdu_table);
+ if (apdu_table)
+ g_hash_table_destroy(apdu_table);
+}
void
proto_register_dvbci(void)
@@ -6348,6 +6356,8 @@ proto_register_dvbci(void)
dissect_dvbci_exported_sac_msg, proto_dvbci);
exported_pdu_tap = register_export_pdu_tap("DVB-CI");
+
+ register_shutdown_routine(dvbci_shutdown);
}