BUG/MINOR: http-htx: Fix a leak on error path during http reply parsing
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 21 May 2020 08:10:41 +0000 (10:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 25 May 2020 05:32:03 +0000 (07:32 +0200)
commitd6e312317631b4bed4c4e88b932a3c95616ffbb3
treeb78c60a604022f6ab409a7e69f0fdf3103f3a149
parent63d4824f646e51a4a13a960f9fd9db5a35dcad16
BUG/MINOR: http-htx: Fix a leak on error path during http reply parsing

When "hdr" arguments of an http reply are parsed, the allocated header may leak
on error path. Adding it to the header list earlier fixes the issue.

This patch should partly fix the issue #645.

No backport needed.
src/http_htx.c