]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: http-htx: Don't forget to release the http reply in release function
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 21 May 2020 07:59:22 +0000 (09:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 25 May 2020 05:32:03 +0000 (07:32 +0200)
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.

src/http_htx.c

index aabf1a598452e89c97127a6091c74509bb3a8168..e1b77933170462160c66e61ae4e177a0e8edfa91 100644 (file)
@@ -993,6 +993,7 @@ void release_http_reply(struct http_reply *http_reply)
                        free(lf);
                }
        }
+       free(http_reply);
 }
 
 static int http_htx_init(void)