commit 8ec6b36dca928057c571af39fd3a9ed599ad5181 Author: Alexander Færøy ahf@torproject.org Date: Sat Jun 23 11:31:59 2018 +0200
Fix memory leak in test_sr_setup_commits().
This patch fixes a memory leak in test_sr_setup_commits() where the place_holder is allocated, but never freed again.
See: Coverity CID 1437440. --- src/test/test_shared_random.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c index 056f199b9..5f86d783a 100644 --- a/src/test/test_shared_random.c +++ b/src/test/test_shared_random.c @@ -788,6 +788,7 @@ test_sr_setup_commits(void) tt_assert(!commit_has_reveal_value(commit_d));
done: + tor_free(place_holder); authority_cert_free(auth_cert); }
tor-commits@lists.torproject.org