From 59d02589fcf000cef70e63b7cb101b3f43c6bf23 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 10 Mar 2020 15:06:38 +0100 Subject: [PATCH] Add a missing call to close_client_ssl_connection() ... to fix a memory leak. Sponsored by: Robert Klemme --- jcc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jcc.c b/jcc.c index 99c423c5..614c7f18 100644 --- a/jcc.c +++ b/jcc.c @@ -3776,6 +3776,9 @@ static void chat(struct client_state *csp) * client body in the buffer (if there is one) and to * continue parsing the bytes that follow. */ +#ifdef FEATURE_HTTPS_INSPECTION + close_client_ssl_connection(csp); +#endif drain_and_close_socket(csp->cfd); csp->cfd = JB_INVALID_SOCKET; -- 2.39.2