aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dof.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-01-22 21:36:39 +0100
committerDario Lombardo <lomato@gmail.com>2017-02-08 17:10:28 +0000
commit19ba947d9abbd372c98dc1339e045e30c0a4d72f (patch)
tree23a05c6e42ff599cc3a3a71c2f3d06fe1164babb /epan/dissectors/packet-dof.c
parent523c09f31f59f074b1e727a32951cd65a83d9ada (diff)
dof: add shutdown routine.
Change-Id: I91bc792302f61fd8f20fa41ec067534316e26074 Reviewed-on: https://code.wireshark.org/review/19742 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-dof.c')
-rw-r--r--epan/dissectors/packet-dof.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dof.c b/epan/dissectors/packet-dof.c
index d2cb747442..93ab19c8fc 100644
--- a/epan/dissectors/packet-dof.c
+++ b/epan/dissectors/packet-dof.c
@@ -12431,6 +12431,21 @@ static void dof_cleanup_routine(void)
dof_trp_cleanup();
}
+static void
+dof_shutdown_routine(void)
+{
+ if (addr_port_to_id)
+ g_hash_table_destroy(addr_port_to_id);
+ if (dpp_opid_to_packet_data)
+ g_hash_table_destroy(dpp_opid_to_packet_data);
+ if (node_key_to_sid_id)
+ g_hash_table_destroy(node_key_to_sid_id);
+ if (sid_buffer_to_sid_id)
+ g_hash_table_destroy(sid_buffer_to_sid_id);
+ if (sid_id_to_sid_buffer)
+ g_hash_table_destroy(sid_id_to_sid_buffer);
+}
+
/**
* This is the first entry point into the dissector, called on program launch.
*/
@@ -12451,6 +12466,7 @@ void proto_register_dof(void)
register_init_routine(&dof_reset_routine);
register_cleanup_routine(&dof_cleanup_routine);
+ register_shutdown_routine(&dof_shutdown_routine);
}
/**