Skip to content

Commit

Permalink
Fix BIO_new_ssl_connect() to not leak memory
Browse files Browse the repository at this point in the history
CLA: trivial

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from openssl#14719)
  • Loading branch information
NanXiao authored and t8m committed Mar 30, 2021
1 parent 4f10a99 commit 7947a1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ssl/bio_ssl.c
Expand Up @@ -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;
Expand Down

0 comments on commit 7947a1e

Please sign in to comment.