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:
parent
d200b42265
commit
661743e4da
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue