summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-tds.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-tds.c')
-rw-r--r--epan/dissectors/packet-tds.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tds.c b/epan/dissectors/packet-tds.c
index 47090753b7..65bdc30e07 100644
--- a/epan/dissectors/packet-tds.c
+++ b/epan/dissectors/packet-tds.c
@@ -2676,6 +2676,12 @@ tds_init(void)
&addresses_ports_reassembly_table_functions);
}
+static void
+tds_cleanup(void)
+{
+ reassembly_table_destroy(&tds_reassembly_table);
+}
+
/* Register the protocol with Wireshark */
/* this format is required because a script is used to build the C function
@@ -3250,6 +3256,7 @@ proto_register_tds(void)
&tds_tcp_ports, 0xFFFF);
register_init_routine(tds_init);
+ register_cleanup_routine(tds_cleanup);
}
/* If this dissector uses sub-dissector registration add a registration routine.