]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-rules: completely free incorrect TCP rules on error
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Mar 2022 19:29:06 +0000 (20:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Mar 2022 19:29:06 +0000 (20:29 +0100)
commitdd7e6c6dc7d65c8fb0c77bfbf4d12b01b792295c
treeb1f3b8a9deb18b0b4814655df44d181bcf93b7f5
parent388c0f2a6385060ee7f2d93863efddc9f0aba284
BUG/MINOR: http-rules: completely free incorrect TCP rules on error

When a http-request or http-response rule fails to parse, we currently
free only the rule without its contents, which makes ASAN complain.
Now that we have a new function for this, let's completely free the
rule. This relies on this commit:

  MINOR: actions: add new function free_act_rule() to free a single rule

It's probably not needed to backport this since we're on the exit path
anyway.
src/http_rules.c