[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix memory leaks in test_hs_cache.c
commit 7a78a37f1dcd88a44e9e28524afc9be2ef9531ce
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Fri Nov 4 14:39:35 2016 -0400
Fix memory leaks in test_hs_cache.c
---
src/test/test_hs_cache.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/test/test_hs_cache.c b/src/test/test_hs_cache.c
index a9f1fe1..3458191 100644
--- a/src/test/test_hs_cache.c
+++ b/src/test/test_hs_cache.c
@@ -195,6 +195,8 @@ test_directory(void *arg)
/* Cleanup our entire cache. */
oom_size = hs_cache_handle_oom(time(NULL), 1);
tt_int_op(oom_size, >=, 1);
+ hs_descriptor_free(desc_zero_lifetime);
+ tor_free(desc_zero_lifetime_str);
}
/* Throw junk at it. */
@@ -236,6 +238,7 @@ test_directory(void *arg)
done:
hs_descriptor_free(desc1);
+ tor_free(desc1_str);
}
static void
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits