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
committerNick Mathewson <nickm@torproject.org>2017-09-05 09:26:21 -0400
commit7eaf055b280cd324507fa55758148dfee62657b1 (patch)
tree80526683f6241cb069a7eed094b665d449e8f23c /src/test/test_hs_descriptor.c
parent2d55620a9eac89cd1dd43250899119485b505a15 (diff)
downloadtor-7eaf055b280cd324507fa55758148dfee62657b1.tar.gz
tor-7eaf055b280cd324507fa55758148dfee62657b1.zip
test: Fix memory leak in hs_descriptor/decode_bad_signature
Fixes #23319 Cherry-picked from master; bug not in any released Tor.
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 8f8da361de..7d7ec7d9db 100644
--- a/src/test/test_hs_descriptor.c
+++ b/src/test/test_hs_descriptor.c
@@ -574,7 +574,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