diff options
author | Dario Lombardo <lomato@gmail.com> | 2017-01-20 14:51:47 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-01-20 18:31:13 +0000 |
commit | 81cbd4c5d1ccf720d938c46ae45c537ac8df35e6 (patch) | |
tree | 4d7c33fae3bbe15669a820a5be4f70869995df7e /epan/dissectors/packet-aim.c | |
parent | d865d984657b2790d879b31f8893f6f67e2bdbf5 (diff) |
aim: add shutdown routine.
Change-Id: Ide2f6f55902a42baa3c36f9c3ad6fd392b6a48c3
Reviewed-on: https://code.wireshark.org/review/19698
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-aim.c')
-rw-r--r-- | epan/dissectors/packet-aim.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/epan/dissectors/packet-aim.c b/epan/dissectors/packet-aim.c index 967f551f5f..0327887598 100644 --- a/epan/dissectors/packet-aim.c +++ b/epan/dissectors/packet-aim.c @@ -3843,6 +3843,19 @@ static const aim_subtype aim_fnac_family_userlookup[] = { { 0, NULL, NULL } }; +static void +family_free(gpointer p, gpointer user_data _U_) +{ + g_free(p); +} + +static void +aim_shutdown(void) +{ + g_list_foreach(families, family_free, NULL); + g_list_free(families); +} + void proto_register_aim(void) { @@ -4540,6 +4553,8 @@ proto_register_aim(void) "Whether the AIM dissector should reassemble messages spanning multiple TCP segments." " To use this option, you must also enable \"Allow subdissectors to reassemble TCP streams\" in the TCP protocol settings.", &aim_desegment); + + register_shutdown_routine(aim_shutdown); } void |