zvt: add shutdown routine.

Change-Id: Ied5ab457a372a74c1a7216002f5ea615ea2a5252
Reviewed-on: https://code.wireshark.org/review/19701
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Dario Lombardo 2017-01-20 16:12:49 +01:00 committed by Michael Mann
parent 83d83dfdd4
commit d865d98465
1 changed files with 9 additions and 0 deletions

View File

@ -1015,6 +1015,13 @@ dissect_zvt_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data
return zvt_len;
}
static void
zvt_shutdown(void)
{
g_hash_table_destroy(tlv_table);
g_hash_table_destroy(apdu_table);
g_hash_table_destroy(bitmap_table);
}
void
proto_register_zvt(void)
@ -1144,6 +1151,8 @@ proto_register_zvt(void)
/* register by name to allow mapping to a user DLT */
register_dissector("zvt", dissect_zvt, proto_zvt);
register_shutdown_routine(zvt_shutdown);
}