mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Try to fix some more memory leaks in the unit tests
This commit is contained in:
parent
614fbf1812
commit
8f9fb3e8fa
@ -228,7 +228,7 @@ test_address_get_if_addrs_ifaddrs(void *arg)
|
||||
|
||||
done:
|
||||
SMARTLIST_FOREACH(results, tor_addr_t *, t, tor_free(t));
|
||||
tor_free(results);
|
||||
smartlist_free(results);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -176,6 +176,7 @@ test_config_addressmap(void *arg)
|
||||
done:
|
||||
config_free_lines(get_options_mutable()->AddressMap);
|
||||
get_options_mutable()->AddressMap = NULL;
|
||||
addressmap_free_all();
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user