diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-04 14:35:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-04 14:35:15 -0400 |
commit | ed4aebcd975eff6a88e07d3db27596f8a32207bd (patch) | |
tree | ed6b22767af53be98af9aec1bd3f9e6bc15302f9 /src/test/test_hs_cache.c | |
parent | 791625750ef0c81b035b5c5c91ff9ab8a256df97 (diff) | |
download | tor-ed4aebcd975eff6a88e07d3db27596f8a32207bd.tar.gz tor-ed4aebcd975eff6a88e07d3db27596f8a32207bd.zip |
Fix more unit test leaks.
Diffstat (limited to 'src/test/test_hs_cache.c')
-rw-r--r-- | src/test/test_hs_cache.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/test_hs_cache.c b/src/test/test_hs_cache.c index e05e1f2d88..a9f1fe10f5 100644 --- a/src/test/test_hs_cache.c +++ b/src/test/test_hs_cache.c @@ -235,7 +235,7 @@ test_directory(void *arg) } done: - ; + hs_descriptor_free(desc1); } static void @@ -432,6 +432,10 @@ test_hsdir_revision_counter_check(void *arg) /* Check that the revision counter is correct */ tt_int_op(received_desc->plaintext_data.revision_counter, ==, 1312); + + hs_descriptor_free(received_desc); + received_desc = NULL; + tor_free(received_desc_str); } /* Increment the revision counter and try again. Should work. */ |