summaryrefslogtreecommitdiff
path: root/plugins/m2m/packet-m2m.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/m2m/packet-m2m.c')
-rw-r--r--plugins/m2m/packet-m2m.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/m2m/packet-m2m.c b/plugins/m2m/packet-m2m.c
index 9e0a07aa2d..80bea305b4 100644
--- a/plugins/m2m/packet-m2m.c
+++ b/plugins/m2m/packet-m2m.c
@@ -163,6 +163,12 @@ m2m_defragment_init(void)
&addresses_reassembly_table_functions);
}
+static void
+m2m_defragment_cleanup(void)
+{
+ reassembly_table_destroy(&pdu_reassembly_table);
+}
+
/* WiMax MAC to MAC protocol dissector */
static void dissect_m2m(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
@@ -794,6 +800,7 @@ void proto_register_m2m(void)
/* Register the PDU fragment table init routine */
register_init_routine(m2m_defragment_init);
+ register_cleanup_routine(m2m_defragment_cleanup);
}
/* Register Wimax Mac to Mac Protocol handler */