From e8b5d02f132627bb8b6a985d9d908fe31f9d7f71 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bonicoli Date: Wed, 13 Apr 2016 01:15:43 +0200 Subject: [PATCH] Add missing call to SSL_CTX_free --- src/connection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/connection.c b/src/connection.c index 1c445e6..a5fbb3d 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1264,6 +1264,7 @@ connection_t *accept_new(connection_t *cn) conn->ssl_h = SSL_new(sslctx); if (!conn->ssl_h) { connection_free(conn); + SSL_CTX_free(sslctx); return NULL; } SSL_set_accept_state(conn->ssl_h);