summaryrefslogtreecommitdiff
path: root/src/test/test_dns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-12-15 14:00:08 -0500
committerNick Mathewson <nickm@torproject.org>2015-12-15 14:00:08 -0500
commita56fb58d6e1e93b95e2a060b61f3d00eab95a298 (patch)
treebbd8ff0c79de7bcd05ce9c0ed15a41deb578635b /src/test/test_dns.c
parentefc8b2dbbfa0659405edb1e388f1f84cb8023425 (diff)
downloadtor-a56fb58d6e1e93b95e2a060b61f3d00eab95a298.tar.gz
tor-a56fb58d6e1e93b95e2a060b61f3d00eab95a298.zip
Fix some memory leaks in the unit tests
Diffstat (limited to 'src/test/test_dns.c')
-rw-r--r--src/test/test_dns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_dns.c b/src/test/test_dns.c
index b40a4825a6..b781d6da53 100644
--- a/src/test/test_dns.c
+++ b/src/test/test_dns.c
@@ -579,6 +579,7 @@ NS(test_main)(void *arg)
tor_free(TO_CONN(exitconn)->address);
tor_free(cache_entry->pending_connections);
tor_free(cache_entry);
+ tor_free(exitconn);
return;
}
@@ -739,6 +740,7 @@ NS(test_main)(void *arg)
tor_free(TO_CONN(exitconn)->address);
tor_free(cache_entry->pending_connections);
tor_free(cache_entry);
+ tor_free(exitconn);
return;
}