From aefef8987f3bbc13d17b8e672f81b973d57ea667 Mon Sep 17 00:00:00 2001 From: Aleksandr Yeganov Date: Tue, 10 Nov 2020 11:43:56 -0500 Subject: [PATCH] Free SSL object when redisSSLConnect fails --- ssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssl.c b/ssl.c index f8124e1..c856bbc 100644 --- a/ssl.c +++ b/ssl.c @@ -351,6 +351,7 @@ static int redisSSLConnect(redisContext *c, SSL *ssl) { } hi_free(rssl); + SSL_free(ssl); return REDIS_ERR; }