diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:03:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:03:00 -0400 |
commit | 1a5be3c5e76a9ce07c64499b6cb8a6bad9323113 (patch) | |
tree | a718cc6d292691c82e92883b5a9113499b513619 /src/test | |
parent | 9d5b815dcabc7344f4e0613246d061064f6d1bd1 (diff) | |
parent | 5ab23e03fa0a8bce11798cbf025139e9653b9be4 (diff) | |
download | tor-1a5be3c5e76a9ce07c64499b6cb8a6bad9323113.tar.gz tor-1a5be3c5e76a9ce07c64499b6cb8a6bad9323113.zip |
Merge branch 'maint-0.3.4'
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_hs.c | 7 | ||||
-rw-r--r-- | src/test/test_shared_random.c | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/test/test_hs.c b/src/test/test_hs.c index 166faa8928..84598d9cc4 100644 --- a/src/test/test_hs.c +++ b/src/test/test_hs.c @@ -573,10 +573,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; @@ -622,6 +622,9 @@ test_hs_auth_cookies(void *arg) tor_free(err_msg); done: + tor_free(encoded_cookie); + tor_free(err_msg); + return; } diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c index 55910a351e..fbf505cc9a 100644 --- a/src/test/test_shared_random.c +++ b/src/test/test_shared_random.c @@ -886,6 +886,7 @@ test_sr_setup_commits(void) tt_assert(!commit_has_reveal_value(commit_d)); done: + tor_free(place_holder); authority_cert_free(auth_cert); } |