summaryrefslogtreecommitdiff
path: root/plugins/m2m
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2015-06-30 01:11:10 +0200
committerMichael Mann <mmann78@netscape.net>2015-07-03 23:38:46 +0000
commit7b33634cc562ba0ee75536b7dde4268a20d89bee (patch)
treeb6f3fc598b7ebad68dddb118651148cca7ed11f4 /plugins/m2m
parent3ad976896a983178fc42a0794f137983f528cde7 (diff)
downloadwireshark-7b33634cc562ba0ee75536b7dde4268a20d89bee.tar.gz
plugins: add cleanup routines
Destroy the reassembly tables on exit, fix memleak in profinet dissector. Change-Id: Id34dbfde42fe715513997452f87cd4fdc328e294 Reviewed-on: https://code.wireshark.org/review/9229 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'plugins/m2m')
-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 */