From c00b0b4beef324b64c9b0bff5c510e32a911a54d Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Sat, 2 May 2020 09:17:52 +0200 Subject: [PATCH] BUG/MEDIUM: mux_fcgi: Free the FCGI connection at the end of fcgi_release() fcgi_release() function is responsible to release a FCGI connection. But the release of the connection itself is missing. This patch must be backported to 2.1. (cherry picked from commit 8694f25040958cfab9e592bee821bc5769d1a1b5) Signed-off-by: Christopher Faulet --- src/mux_fcgi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c index e3349c5..d64d748 100644 --- a/src/mux_fcgi.c +++ b/src/mux_fcgi.c @@ -862,6 +862,8 @@ static void fcgi_release(struct fcgi_conn *fconn) if (conn && fconn->wait_event.events != 0) conn->xprt->unsubscribe(conn, conn->xprt_ctx, fconn->wait_event.events, &fconn->wait_event); + + pool_free(pool_head_fcgi_conn, fconn); } if (conn) { -- 1.7.10.4