Update slh_dsa_test.c

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26916)
This commit is contained in:
Andrew Dinh 2025-02-26 21:39:20 +07:00 committed by Neil Horman
parent 237b761ab4
commit ecc174065a

View File

@ -312,7 +312,7 @@ static EVP_PKEY *do_gen_key(const char *alg,
|| !TEST_int_eq(EVP_PKEY_CTX_set_params(ctx, params), 1)
|| !TEST_int_eq(EVP_PKEY_generate(ctx, &pkey), 1))
pkey = NULL;
err:
EVP_PKEY_CTX_free(ctx);
return pkey;
}