Try to fix some more memory leaks in the unit tests

This commit is contained in:
Nick Mathewson 2015-01-23 11:35:05 -05:00
parent 614fbf1812
commit 8f9fb3e8fa
2 changed files with 2 additions and 1 deletions

View File

@ -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;
} }

View File

@ -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