From 1c5f93a8ae860b4e6319c4a48c7866908f85cd3c Mon Sep 17 00:00:00 2001 From: Sam Stokes Date: Thu, 28 Mar 2019 17:25:17 -0700 Subject: [PATCH] Avoid leaking ssl_fd on every new SSL connection --- src/tcpkali_engine.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tcpkali_engine.c b/src/tcpkali_engine.c index db9487a..31273c3 100644 --- a/src/tcpkali_engine.c +++ b/src/tcpkali_engine.c @@ -2854,6 +2854,9 @@ connection_free_internals(struct connection *conn) { message_collection_free(&conn->message_collection); #ifdef HAVE_OPENSSL + if(conn->ssl_fd) { + SSL_free(conn->ssl_fd); + } if(conn->ssl_ctx) { SSL_CTX_free(conn->ssl_ctx); }