diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-04 14:39:35 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-04 14:39:35 -0400 |
commit | 7a78a37f1dcd88a44e9e28524afc9be2ef9531ce (patch) | |
tree | 538375a91ea4ed2c6ad6737821e4dc163a41bf0d /src/test/test_hs_cache.c | |
parent | ed4aebcd975eff6a88e07d3db27596f8a32207bd (diff) | |
download | tor-7a78a37f1dcd88a44e9e28524afc9be2ef9531ce.tar.gz tor-7a78a37f1dcd88a44e9e28524afc9be2ef9531ce.zip |
Fix memory leaks in test_hs_cache.c
Diffstat (limited to 'src/test/test_hs_cache.c')
-rw-r--r-- | src/test/test_hs_cache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_hs_cache.c b/src/test/test_hs_cache.c index a9f1fe10f5..3458191e46 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 |