[openssl] master update

tomas at openssl.org tomas at openssl.org
Tue Mar 30 16:53:04 UTC 2021

The branch master has been updated
       via  7947a1eb13c221bbc034796bd394ba00b0e2387d (commit)
      from  4f10a996e5123c20315912149f586c481960e0de (commit)

- Log -----------------------------------------------------------------
commit 7947a1eb13c221bbc034796bd394ba00b0e2387d
Author: Nan Xiao <nan at chinadtrace.org>
Date:   Mon Mar 29 12:24:08 2021 +0800

    Fix BIO_new_ssl_connect() to not leak memory
    CLA: trivial
    Reviewed-by: Paul Dale <pauli at openssl.org>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/14719)


Summary of changes:
 ssl/bio_ssl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c
index 033781fcf5..47fe936252 100644
--- a/ssl/bio_ssl.c
+++ b/ssl/bio_ssl.c
@@ -451,6 +451,7 @@ BIO *BIO_new_ssl_connect(SSL_CTX *ctx)
         goto err;
     return ret;
+    BIO_free(ssl);
     return NULL;

More information about the openssl-commits mailing list