The branch OpenSSL_1_1_0-stable has been updated
       via  9716b1234b40c5d36be46465567ea060e09d30d6 (commit)
      from  8054342b78d3ffbd3625689a9692ff1e5f709913 (commit)


- Log -----------------------------------------------------------------
commit 9716b1234b40c5d36be46465567ea060e09d30d6
Author: Todd Short <[email protected]>
Date:   Mon Jan 22 14:30:24 2018 -0500

    Fix error-path memory leak in asn_mime.c
    
    Reviewed-by: Bernd Edlinger <[email protected]>
    Reviewed-by: Matt Caswell <[email protected]>
    (Merged from https://github.com/openssl/openssl/pull/5142)
    
    (cherry picked from commit a26dd465b21d8def440c16b6bd90227b03e12e02)

-----------------------------------------------------------------------

Summary of changes:
 crypto/asn1/asn_mime.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/crypto/asn1/asn_mime.c b/crypto/asn1/asn_mime.c
index d7ec801..e18cacb 100644
--- a/crypto/asn1/asn_mime.c
+++ b/crypto/asn1/asn_mime.c
@@ -425,6 +425,7 @@ ASN1_VALUE *SMIME_read_ASN1(BIO *bio, BIO **bcont, const 
ASN1_ITEM *it)
             || hdr->value == NULL) {
             sk_MIME_HEADER_pop_free(headers, mime_hdr_free);
             ASN1err(ASN1_F_SMIME_READ_ASN1, ASN1_R_NO_SIG_CONTENT_TYPE);
+            sk_BIO_pop_free(parts, BIO_vfree);
             return NULL;
         }
 
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to