components/openssl: fix the SSL_free memory leak

This commit is contained in:
dongheng
2016-09-22 18:33:55 +08:00
parent 18787fd4fc
commit 1bfedf9816
2 changed files with 6 additions and 4 deletions

View File

@@ -266,7 +266,7 @@ const SSL_METHOD *SSL_CTX_get_ssl_method(SSL_CTX *ctx)
*/
SSL *SSL_new(SSL_CTX *ctx)
{
int ret;
int ret = 0;
SSL *ssl;
if (!ctx)