aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-29 13:00:56 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-29 13:00:56 -0400
commit1385a5118d55edd3dd672eeb793b662853f30758 (patch)
tree86b5138cee8ca281830e72cc842b539618d18554 /src/test/test_hs.c
parentd6d3f8486dbac9837a793f431dcd58505e7274e4 (diff)
parentb426e83f077d57e14fc77ebae18a3637bb2c752a (diff)
downloadtor-1385a5118d55edd3dd672eeb793b662853f30758.tar.gz
tor-1385a5118d55edd3dd672eeb793b662853f30758.zip
Merge branch 'maint-0.2.9' into maint-0.3.1
Diffstat (limited to 'src/test/test_hs.c')
-rw-r--r--src/test/test_hs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/test_hs.c b/src/test/test_hs.c
index 5aae6c5b97..cd71f025a3 100644
--- a/src/test/test_hs.c
+++ b/src/test/test_hs.c
@@ -476,10 +476,10 @@ test_hs_auth_cookies(void *arg)
#define TEST_COOKIE_ENCODED_STEALTH "YWJjZGVmZ2hpamtsbW5vcB"
#define TEST_COOKIE_ENCODED_INVALID "YWJjZGVmZ2hpamtsbW5vcD"
- char *encoded_cookie;
+ char *encoded_cookie = NULL;
uint8_t raw_cookie[REND_DESC_COOKIE_LEN];
rend_auth_type_t auth_type;
- char *err_msg;
+ char *err_msg = NULL;
int re;
(void)arg;
@@ -525,6 +525,9 @@ test_hs_auth_cookies(void *arg)
tor_free(err_msg);
done:
+ tor_free(encoded_cookie);
+ tor_free(err_msg);
+
return;
}