]> 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:38 +0000 (19:49 +0200)
commit2658aa5ad3fb9723feea75b18db07cbf9c856858
tree3b826b7ebce1839b9795875294269062f1b3aa2e
parent52f9e3fc286e21da64c90302a80d8bc97ce57d62
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