Free SSL object when redisSSLConnect fails

This commit is contained in:
Aleksandr Yeganov 2020-11-10 11:43:56 -05:00
parent e3f88ebcf8
commit aefef8987f

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;
}