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:
parent
c1bd38a003
commit
434e7f7cb4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue