mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Add missing check to test_address_get_if_addrs_ifaddrs. Bug 18378
This commit is contained in:
parent
cda2381789
commit
b3534dfc5e
@ -297,7 +297,9 @@ test_address_get_if_addrs_ifaddrs(void *arg)
|
||||
}
|
||||
|
||||
done:
|
||||
SMARTLIST_FOREACH(results, tor_addr_t *, t, tor_free(t));
|
||||
if (results) {
|
||||
SMARTLIST_FOREACH(results, tor_addr_t *, t, tor_free(t));
|
||||
}
|
||||
smartlist_free(results);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user