]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-rules: Don't free new rule on allocation failure
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 21 Mar 2022 07:21:19 +0000 (08:21 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 21 Mar 2022 07:24:17 +0000 (08:24 +0100)
commitab398d8ff9d656c6ea81892de39867a7c6c8774c
treed9670c57340d86036cc5733eaeca456383c09f9e
parent9075dbdd84efa4c5066c5cc8c3f0c4945c3ee832
BUG/MINOR: http-rules: Don't free new rule on allocation failure

If allocation of a new HTTP rule fails, we must not release it calling
free_act_rule(). The regression was introduced by the commit dd7e6c6dc
("BUG/MINOR: http-rules: completely free incorrect TCP rules on error").

This patch must only be backported if the commit above is backported. It should
fix the issues #1627, #1628 and #1629.
src/http_rules.c