]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/evp_extra_test.c: Add OPENSSL_free() to avoid memory leak if EVP_PKEY_CTX_set0_r...
authorJiasheng Jiang <jiashengjiangcool@gmail.com>
Tue, 17 Jun 2025 20:11:50 +0000 (20:11 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 18 Jun 2025 08:50:03 +0000 (09:50 +0100)
commitd9b02304602d61e35570bd990faad89ee0ae7140
tree0c68c44965ed00d8866f5b5e95a40bee9001001b
parent6bb81f9294cbdf8799751745a9d91bfd2cbfaa4f
test/evp_extra_test.c: Add OPENSSL_free() to avoid memory leak if EVP_PKEY_CTX_set0_rsa_oaep_label() fails

Add OPENSSL_free() to free 'label' if EVP_PKEY_CTX_set0_rsa_oaep_label() fails to avoid memory leak.

Fixes: 21b98da ("rsa: Accept NULL OAEP label for backward compatibility")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27835)
test/evp_extra_test.c