aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNek Saikou <NekSaikou@proton.me>2024-05-24 17:45:01 +0700
committerTomas Mraz <tomas@openssl.org>2024-05-28 15:54:40 +0200
commit434e7f7cb4259f8c8c1463fd38fe723b3efca887 (patch)
tree3c55b492a5048120f46edc3d63ddeff8ff410e2b /test
parentc1bd38a003fa19fd0d8ade85e1bbc20d8ae59dab (diff)
downloadopenssl-434e7f7cb4259f8c8c1463fd38fe723b3efca887.zip
openssl-434e7f7cb4259f8c8c1463fd38fe723b3efca887.tar.gz
openssl-434e7f7cb4259f8c8c1463fd38fe723b3efca887.tar.bz2
ecstresstest.c: Fix memory leak on error
Fixes #24476 CLA: trivial Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24488)
Diffstat (limited to 'test')
-rw-r--r--test/ecstresstest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ecstresstest.c b/test/ecstresstest.c
index 22d46c5..b4dd463 100644
--- a/test/ecstresstest.c
+++ b/test/ecstresstest.c
@@ -79,7 +79,7 @@ static int test_curve(void)
|| !TEST_ptr(point = EC_POINT_dup(EC_GROUP_get0_generator(group),
group))
|| !TEST_ptr(result = walk_curve(group, point, num_repeats)))
- return 0;
+ goto err;
if (print_mode) {
BN_print(bio_out, result);