]> 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:07 +0000 (19:49 +0200)
commit9882d389df71ef7163c7769b4431a0dbe713ab65
treebe25455aba2bbb0853d0e8e6541be6fa2b2de4e5
parent0dc6ea55a13dbe27af234b5328527d0a31ae68eb
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)
crypto/pkcs7/pk7_smime.c