diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:00:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:00:56 -0400 |
commit | fe2588a5a8560c8cb03345b3caaaf906655c34a1 (patch) | |
tree | 51f449eb77966d3990ba4cd53f89fccbb2f4733c /src/test | |
parent | 25226fb260a6b5f93187b707ec35f06637fbe710 (diff) | |
parent | 1385a5118d55edd3dd672eeb793b662853f30758 (diff) | |
download | tor-fe2588a5a8560c8cb03345b3caaaf906655c34a1.tar.gz tor-fe2588a5a8560c8cb03345b3caaaf906655c34a1.zip |
Merge branch 'maint-0.3.1' into maint-0.3.2
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 7737499f50..09db176df8 100644 --- a/src/test/test_hs.c +++ b/src/test/test_hs.c @@ -565,10 +565,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; @@ -614,6 +614,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 cac78baecf..0d0a2ad9ae 100644 --- a/src/test/test_shared_random.c +++ b/src/test/test_shared_random.c @@ -877,6 +877,7 @@ test_sr_setup_commits(void) tt_assert(!commit_has_reveal_value(commit_d)); done: + tor_free(place_holder); authority_cert_free(auth_cert); } |