aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-01-23 11:35:05 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-23 11:35:05 -0500
commit8f9fb3e8fae31e3c14811911f23537cfecc6b780 (patch)
tree8f613930febf3abf730faaad86e689d0055009a9 /src/test
parent614fbf1812690eb1cc2f52289d72ad2839f0ef9c (diff)
downloadtor-8f9fb3e8fae31e3c14811911f23537cfecc6b780.tar.gz
tor-8f9fb3e8fae31e3c14811911f23537cfecc6b780.zip
Try to fix some more memory leaks in the unit tests
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_address.c2
-rw-r--r--src/test/test_config.c1
2 files changed, 2 insertions, 1 deletions
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