From: Christopher Faulet Date: Thu, 21 May 2020 07:59:22 +0000 (+0200) Subject: BUG/MINOR: http-htx: Don't forget to release the http reply in release function X-Git-Tag: v2.2-dev9~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63d4824f646e51a4a13a960f9fd9db5a35dcad16;p=thirdparty%2Fhaproxy.git BUG/MINOR: http-htx: Don't forget to release the http reply in release function The http reply must be released in the function responsible to release it. This leak was introduced when the http return was refactored to use http reply. This patch should partly fix the issue #645. No backport needed. --- diff --git a/src/http_htx.c b/src/http_htx.c index aabf1a5984..e1b7793317 100644 --- a/src/http_htx.c +++ b/src/http_htx.c @@ -993,6 +993,7 @@ void release_http_reply(struct http_reply *http_reply) free(lf); } } + free(http_reply); } static int http_htx_init(void)