aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_descriptor.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-08-24 16:21:44 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-08-24 16:21:44 -0400
commitdfaa5c65f9fbfde9a12d8eb3ed848cab6ed1a5f9 (patch)
treef5382e747fdca41bba92f0fafdaf6bb55a1225ed /src/test/test_hs_descriptor.c
parenta007c02df0140d15697cf0ca61cea90bfc494789 (diff)
downloadtor-dfaa5c65f9fbfde9a12d8eb3ed848cab6ed1a5f9.tar.gz
tor-dfaa5c65f9fbfde9a12d8eb3ed848cab6ed1a5f9.zip
test: Fix memory leak in hs_descriptor/decode_bad_signature
Fixes #23319 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_hs_descriptor.c')
-rw-r--r--src/test/test_hs_descriptor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_hs_descriptor.c b/src/test/test_hs_descriptor.c
index 30a5b23cf2..7f0d1dd189 100644
--- a/src/test/test_hs_descriptor.c
+++ b/src/test/test_hs_descriptor.c
@@ -581,7 +581,8 @@ test_decode_bad_signature(void *arg)
expect_log_msg_containing("Malformed signature line. Rejecting.");
teardown_capture_of_logs();
- done: ;
+ done:
+ desc_plaintext_data_free_contents(&desc_plaintext);
}
static void