forked from osmocom/wireshark
Free interface_options elements on cleanup
At shutdown the array keeping all interface_options is freed. The array elements however are not making valgrind and ASAN complain. Make sure the elements are freed on cleanup. Ping-Bug: 13864 Change-Id: If8b810ea5f4f11c5ce770a9ffa6c2c791bc561fe Reviewed-on: https://code.wireshark.org/review/23265 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
879920a2eb
commit
287221e8d9
|
@ -138,6 +138,9 @@ capture_opts_cleanup(capture_options *capture_opts)
|
|||
return;
|
||||
|
||||
if (capture_opts->ifaces) {
|
||||
while (capture_opts->ifaces->len > 0) {
|
||||
capture_opts_del_iface(capture_opts, 0);
|
||||
}
|
||||
g_array_free(capture_opts->ifaces, TRUE);
|
||||
capture_opts->ifaces = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue