aboutsummaryrefslogtreecommitdiffstats
path: root/epan/addr_resolv.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-04-20 23:43:19 -0700
committerGuy Harris <guy@alum.mit.edu>2016-04-21 06:43:50 +0000
commit661743e4da6bbf39edcfed240d4388c0dcd73385 (patch)
treecb4ea2c71739d292ae3aa560c667a1764112a1c3 /epan/addr_resolv.c
parentd200b42265326e5876414d0c8cc001e291ae2010 (diff)
If you allocate with wmem, free with wmem.
Change-Id: I91476c825448cbeb8b96242236aae44d92244161 Reviewed-on: https://code.wireshark.org/review/15033 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/addr_resolv.c')
-rw-r--r--epan/addr_resolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c
index 5027326e19..9d7166ca55 100644
--- a/epan/addr_resolv.c
+++ b/epan/addr_resolv.c
@@ -2049,7 +2049,7 @@ read_hosts_file (const char *hostspath, gboolean store_entries)
}
}
}
- g_free(line);
+ wmem_free(wmem_epan_scope(), line);
fclose(hf);
return entry_found ? TRUE : FALSE;