projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
122e5f7
)
Fix BIO_new_ssl_connect() to not leak memory
author
Nan Xiao
<nan@chinadtrace.org>
Mon, 29 Mar 2021 04:24:08 +0000
(12:24 +0800)
committer
Tomas Mraz
<tomas@openssl.org>
Tue, 30 Mar 2021 16:53:35 +0000
(18:53 +0200)
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
)
ssl/bio_ssl.c
patch
|
blob
|
history
diff --git
a/ssl/bio_ssl.c
b/ssl/bio_ssl.c
index 53129bfb88111ced229669d8f7f6f10e1105a7b6..75c78b9a68579d23c3ac56e4d0c9adeea7d35f81 100644
(file)
--- 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;