]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/pkcs7/pk7_smime.c: Add BIO_free() to avoid memory leak
authorJiashengJiang <jiasheng@purdue.edu>
Thu, 22 May 2025 01:12:18 +0000 (21:12 -0400)
committerTomas Mraz <tomas@openssl.org>
Tue, 27 May 2025 17:49:51 +0000 (19:49 +0200)
commit128d908f9474ace20b5326cf5c4481c7be454414
treee0e59764ab9ab8e8fe270d9ee1a8081439260d13
parent0fc85f7494b6951efe0c22fce45547500b3624af
crypto/pkcs7/pk7_smime.c: Add BIO_free() to avoid memory leak

Add BIO_free() to free tmpout if OPENSSL_malloc() fails to avoid memory leak.

Fixes: 8e70485 ("RT3955: Reduce some stack usage")
Signed-off-by: JiashengJiang <jiasheng@purdue.edu>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27631)

(cherry picked from commit 9882d389df71ef7163c7769b4431a0dbe713ab65)
crypto/pkcs7/pk7_smime.c