diff options
author | Dario Lombardo <lomato@gmail.com> | 2017-02-02 17:10:51 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2017-02-03 11:19:15 +0000 |
commit | 3481ca8733601f88c3c4c535d19b43ea99a35bbb (patch) | |
tree | 6c919001f36ea60920ad143479c2adda5505792b /extcap.c | |
parent | fe06aad460d7525cc6196019b18bf9972e078231 (diff) |
extcap: destroy hash tables on exit.
Change-Id: Ia6a1d8a45c36aff7f2bea8bde2ed5f308bddd2e1
Reviewed-on: https://code.wireshark.org/review/19919
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap.c')
-rw-r--r-- | extcap.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -589,6 +589,16 @@ void extcap_cleanup(void) { g_hash_table_destroy(extcap_prefs_dynamic_vals); } + + if (ifaces) + { + g_hash_table_destroy(ifaces); + } + + if (tools) + { + g_hash_table_destroy(tools); + } } void extcap_pref_store(extcap_arg *arg, const char *newval) |