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)
This commit is contained in:
Nek Saikou 2024-05-24 17:45:01 +07:00 committed by Tomas Mraz
parent c1bd38a003
commit 434e7f7cb4

View file

@ -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);