summaryrefslogtreecommitdiff
path: root/epan/addr_resolv.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-02-10 18:04:20 +0100
committerMichael Mann <mmann78@netscape.net>2017-02-18 14:11:45 +0000
commitf792625b1df21a6fb6bdf5dff6a1c7bc4019e34d (patch)
tree5adcecbb59b6c43269613760c72b8fd2c2a0e5f4 /epan/addr_resolv.c
parent6d79055ba651c6f1e45b22960c5fd34c75c95133 (diff)
downloadwireshark-f792625b1df21a6fb6bdf5dff6a1c7bc4019e34d.tar.gz
epan/wsutil: free memory on exit.
Change-Id: I1cf3a4ce3b21b2e10887cbef5576e5e028e55bab Reviewed-on: https://code.wireshark.org/review/20052 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/addr_resolv.c')
-rw-r--r--epan/addr_resolv.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c
index f8a5ca0176..73b2452a64 100644
--- a/epan/addr_resolv.c
+++ b/epan/addr_resolv.c
@@ -665,6 +665,8 @@ service_name_lookup_cleanup(void)
serv_port_hashtable = NULL;
g_free(g_services_path);
g_services_path = NULL;
+ g_free(g_pservices_path);
+ g_pservices_path = NULL;
}
/* Fill in an IP4 structure with info from subnets file or just with the
@@ -1332,6 +1334,13 @@ initialize_ethers(void)
} /* initialize_ethers */
+static void
+ethers_cleanup(void)
+{
+ g_free(g_pethers_path);
+ g_pethers_path = NULL;
+}
+
/* Resolve ethernet address */
static hashether_t *
eth_addr_resolve(hashether_t *tp) {
@@ -1708,6 +1717,8 @@ static void
ipx_name_lookup_cleanup(void)
{
ipxnet_hash_table = NULL;
+ g_free(g_pipxnets_path);
+ g_pipxnets_path = NULL;
}
#if 0
@@ -1919,6 +1930,8 @@ static void
vlan_name_lookup_cleanup(void)
{
vlan_hash_table = NULL;
+ g_free(g_pvlan_path);
+ g_pvlan_path = NULL;
}
static const gchar *
@@ -3374,6 +3387,7 @@ addr_resolv_cleanup(void)
{
vlan_name_lookup_cleanup();
service_name_lookup_cleanup();
+ ethers_cleanup();
ipx_name_lookup_cleanup();
/* host name initialization is done on a per-capture-file basis */
/*host_name_lookup_cleanup();*/