aboutsummaryrefslogtreecommitdiffstats
path: root/epan/addr_resolv.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-04-20 23:51:21 -0700
committerGuy Harris <guy@alum.mit.edu>2016-04-21 06:52:03 +0000
commit14f2a654d43cdda68e1e0d4afe11257ea37f89f5 (patch)
tree3b1b7681bb9e938bfba1a77e4e91c38cf5096691 /epan/addr_resolv.c
parent661743e4da6bbf39edcfed240d4388c0dcd73385 (diff)
If you allocate with wmem, free with wmem (more of same).
Change-Id: I10991dcb717a38936e2b7cf2f15885b5753378d0 Reviewed-on: https://code.wireshark.org/review/15034 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 9d7166ca55..e1b22987cc 100644
--- a/epan/addr_resolv.c
+++ b/epan/addr_resolv.c
@@ -2217,7 +2217,7 @@ read_subnets_file (const char *subnetspath)
subnet_entry_set(host_addr, (guint32)mask_length, cp);
}
- g_free(line);
+ wmem_free(wmem_epan_scope(), line);
fclose(hf);
return TRUE;