From: Christopher Faulet Date: Sat, 2 May 2020 07:17:52 +0000 (+0200) Subject: BUG/MEDIUM: mux_fcgi: Free the FCGI connection at the end of fcgi_release() X-Git-Tag: v2.2-dev7~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8694f25040958cfab9e592bee821bc5769d1a1b5;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c index f6a2f7c143..1db86460d0 100644 --- a/src/mux_fcgi.c +++ b/src/mux_fcgi.c @@ -852,6 +852,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) {