diff options
Diffstat (limited to 'epan/dissectors/packet-fcswils.c')
-rw-r--r-- | epan/dissectors/packet-fcswils.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/epan/dissectors/packet-fcswils.c b/epan/dissectors/packet-fcswils.c index 327eba4281..81a11dcd2f 100644 --- a/epan/dissectors/packet-fcswils.c +++ b/epan/dissectors/packet-fcswils.c @@ -486,11 +486,13 @@ fcswils_hash(gconstpointer v) static void fcswils_init_protocol(void) { - if (fcswils_req_hash) - g_hash_table_destroy(fcswils_req_hash); - fcswils_req_hash = g_hash_table_new(fcswils_hash, fcswils_equal); +} +static void +fcswils_cleanup_protocol(void) +{ + g_hash_table_destroy(fcswils_req_hash); } static guint8 * @@ -2531,6 +2533,7 @@ proto_register_fcswils(void) expert_fcswils = expert_register_protocol(proto_fcswils); expert_register_field_array(expert_fcswils, ei, array_length(ei)); register_init_routine(&fcswils_init_protocol); + register_cleanup_routine(&fcswils_cleanup_protocol); } void |