mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
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)
This commit is contained in:
parent
4f10a996e5
commit
7947a1eb13
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user