From: Nick Mathewson Date: Fri, 23 Jan 2015 16:35:05 +0000 (-0500) Subject: Try to fix some more memory leaks in the unit tests X-Git-Tag: tor-0.2.6.3-alpha~112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f9fb3e8fae31e3c14811911f23537cfecc6b780;p=thirdparty%2Ftor.git Try to fix some more memory leaks in the unit tests --- diff --git a/src/test/test_address.c b/src/test/test_address.c index f16f18e52e..f98cc12b62 100644 --- a/src/test/test_address.c +++ b/src/test/test_address.c @@ -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; } diff --git a/src/test/test_config.c b/src/test/test_config.c index b1f5017b78..b63b78e386 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -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