summaryrefslogtreecommitdiff
path: root/extcap.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-02-02 17:10:51 +0100
committerRoland Knall <rknall@gmail.com>2017-02-03 11:19:15 +0000
commit3481ca8733601f88c3c4c535d19b43ea99a35bbb (patch)
tree6c919001f36ea60920ad143479c2adda5505792b /extcap.c
parentfe06aad460d7525cc6196019b18bf9972e078231 (diff)
downloadwireshark-3481ca8733601f88c3c4c535d19b43ea99a35bbb.tar.gz
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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/extcap.c b/extcap.c
index e8f28e1567..1882ba0244 100644
--- a/extcap.c
+++ b/extcap.c
@@ -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)