]> git.ipfire.org Git - thirdparty/tor.git/commit
Fix potential memory leak in hs_helper_build_hs_desc_impl().
authorAlexander Færøy <ahf@torproject.org>
Sat, 23 Jun 2018 08:27:10 +0000 (10:27 +0200)
committerAlexander Færøy <ahf@torproject.org>
Sat, 23 Jun 2018 08:27:10 +0000 (10:27 +0200)
commitdc2384da30cae716f512dedef37d27f00c43f29d
treeeb86e125712cc27e96c53960d38eac6e553f37cc
parent8c8941eb297a166aa7b1b915a543bf97b3a63039
Fix potential memory leak in hs_helper_build_hs_desc_impl().

This patch fixes a memory leak in hs_helper_build_hs_desc_impl() where
if a test assertion would fail we would leak the storage that `desc`
points to.

See: Coverity CID 1437448
src/test/hs_test_helpers.c