summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksandr Yeganov <ayeganov@cisco.com>2020-11-10 11:43:56 -0500
committerAleksandr Yeganov <ayeganov@cisco.com>2020-11-10 11:59:41 -0500
commitaefef8987f3bbc13d17b8e672f81b973d57ea667 (patch)
tree823007be86298cbe6e43710a6f71c954effb6142
parente3f88ebcf830323db32a33b908d67a617caf83e4 (diff)
Free SSL object when redisSSLConnect fails
-rw-r--r--ssl.c1
1 files changed, 1 insertions, 0 deletions
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;
}