mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +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:
|
done:
|
||||||
SMARTLIST_FOREACH(results, tor_addr_t *, t, tor_free(t));
|
SMARTLIST_FOREACH(results, tor_addr_t *, t, tor_free(t));
|
||||||
tor_free(results);
|
smartlist_free(results);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,6 +176,7 @@ test_config_addressmap(void *arg)
|
|||||||
done:
|
done:
|
||||||
config_free_lines(get_options_mutable()->AddressMap);
|
config_free_lines(get_options_mutable()->AddressMap);
|
||||||
get_options_mutable()->AddressMap = NULL;
|
get_options_mutable()->AddressMap = NULL;
|
||||||
|
addressmap_free_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user