mirror of https://github.com/openssl/openssl.git
				
				
				
			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 7947a1eb13)
			
			
This commit is contained in:
		
							parent
							
								
									122e5f7c01
								
							
						
					
					
						commit
						fd988967bb
					
				| 
						 | 
					@ -451,6 +451,7 @@ BIO *BIO_new_ssl_connect(SSL_CTX *ctx)
 | 
				
			||||||
        goto err;
 | 
					        goto err;
 | 
				
			||||||
    return ret;
 | 
					    return ret;
 | 
				
			||||||
 err:
 | 
					 err:
 | 
				
			||||||
 | 
					    BIO_free(ssl);
 | 
				
			||||||
    BIO_free(con);
 | 
					    BIO_free(con);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
    return NULL;
 | 
					    return NULL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue