]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/bio_pw_callback_test.c: Add BIO_free() to avoid memory leak
authorJiasheng Jiang <jiashengjiangcool@gmail.com>
Wed, 25 Jun 2025 19:22:30 +0000 (19:22 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 1 Jul 2025 18:33:28 +0000 (20:33 +0200)
commit2ad09ef41396c22ade94a2cd3257843f0439b044
treeee885422d16f3b7dbc7007fee3c7883c28c7d6a2
parent881ff0c225356a0f28bd55cea5a4c5204b7b7b8a
test/bio_pw_callback_test.c: Add BIO_free() to avoid memory leak

Add BIO_free() if PEM_read_bio_PrivateKey fails to avoid memory leak.

Fixes: fa6ae88a47 ("Add test for BIO password callback functionality")
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/27898)
test/bio_pw_callback_test.c