summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-ndmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-ndmp.c')
-rw-r--r--epan/dissectors/packet-ndmp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ndmp.c b/epan/dissectors/packet-ndmp.c
index 612ca9a707..860670a45b 100644
--- a/epan/dissectors/packet-ndmp.c
+++ b/epan/dissectors/packet-ndmp.c
@@ -3419,6 +3419,12 @@ ndmp_init(void)
&addresses_reassembly_table_functions);
}
+static void
+ndmp_cleanup(void)
+{
+ reassembly_table_destroy(&ndmp_reassembly_table);
+}
+
void
proto_register_ndmp(void)
@@ -4250,6 +4256,7 @@ proto_register_ndmp(void)
"Whether the dissector should defragment NDMP messages spanning multiple packets.",
&ndmp_defragment);
register_init_routine(ndmp_init);
+ register_cleanup_routine(ndmp_cleanup);
}
void