diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-10-21 10:28:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-10-21 10:28:10 -0400 |
commit | 6ef35319d9d2f9ed5cdd6f73089029c7cfce0d43 (patch) | |
tree | 1fbe31535bc050d7008fb68206618bb3d4730e02 /src/test/test_rendcache.c | |
parent | 46cd466decfcf05cc7588256aa7e9491a7c9e918 (diff) | |
download | tor-6ef35319d9d2f9ed5cdd6f73089029c7cfce0d43.tar.gz tor-6ef35319d9d2f9ed5cdd6f73089029c7cfce0d43.zip |
More leaks here
Diffstat (limited to 'src/test/test_rendcache.c')
-rw-r--r-- | src/test/test_rendcache.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c index 32ba499a26..5574d3d70b 100644 --- a/src/test/test_rendcache.c +++ b/src/test/test_rendcache.c @@ -205,7 +205,7 @@ test_rend_cache_store_v2_desc_as_client(void *data) rend_cache_init(); rend_encoded_v2_service_descriptor_free(desc_holder); tor_free(service_id); - tor_free(entry); + rend_data_free(mock_rend_query); generate_desc(RECENT_TIME, &desc_holder, &service_id, 3); mock_rend_query = mock_rend_data(service_id); @@ -230,6 +230,7 @@ test_rend_cache_store_v2_desc_as_client(void *data) rend_cache_init(); rend_encoded_v2_service_descriptor_free(desc_holder); tor_free(service_id); + rend_data_free(mock_rend_query); generate_desc(RECENT_TIME, &desc_holder, &service_id, 3); mock_rend_query = mock_rend_data(service_id); @@ -296,7 +297,6 @@ test_rend_cache_store_v2_desc_as_client(void *data) done: rend_encoded_v2_service_descriptor_free(desc_holder); - tor_free(entry); tor_free(service_id); rend_cache_free_all(); rend_data_free(mock_rend_query); @@ -606,8 +606,8 @@ test_rend_cache_store_v2_desc_as_dir_with_different_content(void *data) smartlist_t *descs = smartlist_new(); time_t t; char *service_id = NULL; - rend_encoded_v2_service_descriptor_t *desc_holder_one; - rend_encoded_v2_service_descriptor_t *desc_holder_two; + rend_encoded_v2_service_descriptor_t *desc_holder_one = NULL; + rend_encoded_v2_service_descriptor_t *desc_holder_two = NULL; NS_MOCK(router_get_my_routerinfo); NS_MOCK(hid_serv_responsible_for_desc_id); @@ -653,6 +653,8 @@ test_rend_cache_store_v2_desc_as_dir_with_different_content(void *data) SMARTLIST_FOREACH(descs, rend_encoded_v2_service_descriptor_t *, d, rend_encoded_v2_service_descriptor_free(d)); smartlist_free(descs); + rend_encoded_v2_service_descriptor_free(desc_holder_one); + rend_encoded_v2_service_descriptor_free(desc_holder_two); } #undef NS_SUBMODULE |