From ecc174065add643c8cb03b70672bfe92ea1333e5 Mon Sep 17 00:00:00 2001 From: Andrew Dinh Date: Wed, 26 Feb 2025 21:39:20 +0700 Subject: [PATCH] Update slh_dsa_test.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Saša Nedvědický Reviewed-by: Neil Horman Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/26916) --- test/slh_dsa_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/slh_dsa_test.c b/test/slh_dsa_test.c index 2d7ac2d9211..eff9071937a 100644 --- a/test/slh_dsa_test.c +++ b/test/slh_dsa_test.c @@ -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; } -- 2.47.2