]> 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...
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:01:51 +0000 (11:01 +1000)
commitd6fcaa5658bca18474a5e55d7c4807efcc242173
treeb42c741f1c2420421d5e378063063277bf17a886
parentd2a71ed94e82f96a589fbc017d525d415b427337
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)
test/ml_kem_internal_test.c