summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-11-15 09:56:10 -0800
committerGitHub <noreply@github.com>2020-11-15 09:56:10 -0800
commite4a200040a1f8f5b674e4b753cbc604d500fe05c (patch)
tree823007be86298cbe6e43710a6f71c954effb6142
parente3f88ebcf830323db32a33b908d67a617caf83e4 (diff)
parentaefef8987f3bbc13d17b8e672f81b973d57ea667 (diff)
Merge pull request #896 from ayeganov/bugfix/ssl_leak
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;
}