From 8ec6b36dca928057c571af39fd3a9ed599ad5181 Mon Sep 17 00:00:00 2001 From: Alexander Færøy Date: Sat, 23 Jun 2018 11:31:59 +0200 Subject: 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(+) (limited to 'src/test/test_shared_random.c') diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c index 056f199b94..5f86d783af 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); } -- cgit v1.2.3-54-g00ecf