mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix memory leaks in test_hs_cache.c
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user