diff options
author | Alexander Færøy <ahf@torproject.org> | 2018-06-23 11:31:59 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2018-06-23 13:11:03 +0200 |
commit | 8ec6b36dca928057c571af39fd3a9ed599ad5181 (patch) | |
tree | b2c967b3e8f2dd928f7a3aaf9a5b86377783cece | |
parent | 3395de51a01aa5519c52404ed2bb9c8cda3571c9 (diff) | |
download | tor-8ec6b36dca928057c571af39fd3a9ed599ad5181.tar.gz tor-8ec6b36dca928057c571af39fd3a9ed599ad5181.zip |
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.
-rw-r--r-- | src/test/test_shared_random.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |