Merge pull request #896 from ayeganov/bugfix/ssl_leak

Free SSL object when redisSSLConnect fails
This commit is contained in:
Michael Grunder 2020-11-15 09:56:10 -08:00 committed by GitHub
commit e4a200040a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
ssl.c
View File

@ -351,6 +351,7 @@ static int redisSSLConnect(redisContext *c, SSL *ssl) {
}
hi_free(rssl);
SSL_free(ssl);
return REDIS_ERR;
}