summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-ltp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-ltp.c')
-rw-r--r--epan/dissectors/packet-ltp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ltp.c b/epan/dissectors/packet-ltp.c
index 6cc142da91..7f911e4ad2 100644
--- a/epan/dissectors/packet-ltp.c
+++ b/epan/dissectors/packet-ltp.c
@@ -772,6 +772,11 @@ ltp_defragment_init(void) {
&addresses_reassembly_table_functions);
}
+static void
+ltp_defragment_cleanup(void) {
+ reassembly_table_destroy(&ltp_reassembly_table);
+}
+
/* Register the protocol with Wireshark */
void
proto_register_ltp(void)
@@ -976,6 +981,7 @@ proto_register_ltp(void)
"The UDP or DCCP port to accept LTP Connections",
10, &ltp_port);
register_init_routine(ltp_defragment_init);
+ register_cleanup_routine(ltp_defragment_cleanup);
}
void