diff options
author | Nan Xiao <nan@chinadtrace.org> | 2021-03-29 12:24:08 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-03-30 18:53:35 +0200 |
commit | fd988967bb14ce49b01c399b5d2c466852c105e4 (patch) | |
tree | c988e5dfc23490460897aac86d7ceab049e86832 /ssl | |
parent | 122e5f7c010859f0b2984d553fa45cd1f18a6fc4 (diff) |
Fix BIO_new_ssl_connect() to not leak memory
CLA: trivial
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14719)
(cherry picked from commit 7947a1eb13c221bbc034796bd394ba00b0e2387d)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/bio_ssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c index 53129bfb88..75c78b9a68 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; err: + BIO_free(ssl); BIO_free(con); #endif return NULL; |