[tor-commits] [tor/maint-0.3.3] Fix memory leak in test_sr_setup_commits().
nickm at torproject.org
nickm at torproject.org
Fri Jun 29 17:06:29 UTC 2018
commit 8ec6b36dca928057c571af39fd3a9ed599ad5181
Author: Alexander Færøy <ahf at 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);
}
More information about the tor-commits
mailing list