diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:06:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-29 13:06:15 -0400 |
commit | 68dfbd5ef433b830059baa08d48589518db05d22 (patch) | |
tree | ba5a3ed16dd63a65e8c409b435c112669b0a9900 /src/test/hs_test_helpers.c | |
parent | fe2588a5a8560c8cb03345b3caaaf906655c34a1 (diff) | |
parent | ea14d3408df7c846722b54484cf5b8d61de5384f (diff) | |
download | tor-68dfbd5ef433b830059baa08d48589518db05d22.tar.gz tor-68dfbd5ef433b830059baa08d48589518db05d22.zip |
Merge branch 'maint-0.3.1' into maint-0.3.2
Diffstat (limited to 'src/test/hs_test_helpers.c')
-rw-r--r-- | src/test/hs_test_helpers.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/hs_test_helpers.c b/src/test/hs_test_helpers.c index 9355971267..5c1b9123d8 100644 --- a/src/test/hs_test_helpers.c +++ b/src/test/hs_test_helpers.c @@ -86,6 +86,9 @@ hs_helper_build_intro_point(const ed25519_keypair_t *signing_kp, time_t now, intro_point = ip; done: + if (intro_point == NULL) + tor_free(ip); + return intro_point; } @@ -143,6 +146,9 @@ hs_helper_build_hs_desc_impl(unsigned int no_ip, descp = desc; done: + if (descp == NULL) + tor_free(desc); + return descp; } |