summaryrefslogtreecommitdiff
path: root/src/test/test_hs.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-12-02 07:39:14 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-02 07:39:14 -0500
commit1221c5aa02c0a9789de92d16935cf74da5365822 (patch)
tree3d194277e7525eb058dfdca09c6d64ba2d9c4ae2 /src/test/test_hs.c
parent9e297f819738b1ae58982db89c19ba9c99236c0c (diff)
downloadtor-1221c5aa02c0a9789de92d16935cf74da5365822.tar.gz
tor-1221c5aa02c0a9789de92d16935cf74da5365822.zip
test_single_onion_poisoning: Free dir[12] on all paths
Coverity doesn't like it when there are paths to the end of the function where something doesn't get freed, even when those paths are only reachable on unit test failure. Fixes CID 1372899 and CID 1372900. Bug not in any released Tor.
Diffstat (limited to 'src/test/test_hs.c')
-rw-r--r--src/test/test_hs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_hs.c b/src/test/test_hs.c
index fc8ce97852..f4ba7f9e0e 100644
--- a/src/test/test_hs.c
+++ b/src/test/test_hs.c
@@ -765,6 +765,8 @@ test_single_onion_poisoning(void *arg)
tt_assert(ret == 0);
done:
+ tor_free(dir1);
+ tor_free(dir2);
/* The test harness deletes the directories at exit */
smartlist_free(services);
rend_service_free(service_1);