diff options
author | Nek Saikou <NekSaikou@proton.me> | 2024-05-24 17:45:01 +0700 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-05-28 15:56:11 +0200 |
commit | 1405f5d5a978b66855692618af468c9f2ded4e21 (patch) | |
tree | 669500c5b12b198e3f7b80f3d28bd3c30fcbedac | |
parent | 6972d5ace1275faf404e7a53e806861962f4121c (diff) |
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)
(cherry picked from commit 434e7f7cb4259f8c8c1463fd38fe723b3efca887)
-rw-r--r-- | test/ecstresstest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ecstresstest.c b/test/ecstresstest.c index 22d46c50da..b4dd463740 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); |