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>
This commit is contained in:
Guy Harris 2016-04-20 23:43:19 -07:00
parent d200b42265
commit 661743e4da
1 changed files with 1 additions and 1 deletions

View File

@ -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;