]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/ml_kem_internal_test.c: Add EVP_MD_free() in the error path to avoid memory... openssl-3.5
authorJiasheng Jiang <jiashengjiangcool@gmail.com>
Mon, 11 Aug 2025 21:52:59 +0000 (21:52 +0000)
committerPauli <ppzgs1@gmail.com>
Fri, 15 Aug 2025 01:02:25 +0000 (11:02 +1000)
commiteea39c1a81162189c12f92af9c86cf5cfe052ce0
treefdd269f077a91de46a1ccd46d36bddafdc368995
parent7ba09090bca8a8f4d9677f0f7fd6934b64cf2dc4
test/ml_kem_internal_test.c: Add EVP_MD_free() in the error path to avoid memory leak

Add EVP_MD_free() to free sha256 in the error path to avoid memory leak.

Fixes: d2136d9 ("Multi-variant ML-KEM")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/27946)

(cherry picked from commit d6fcaa5658bca18474a5e55d7c4807efcc242173)
test/ml_kem_internal_test.c