]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: actions: add new function free_act_rule() to free a single rule
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Mar 2022 19:23:43 +0000 (20:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Mar 2022 19:26:19 +0000 (20:26 +0100)
commit6a783e499c8d5a7a3a2cd8eccd8faf4c8828a8f3
tree7c69e8e158239fd3fa4997918ba4f76285ed9ae8
parent211ea252d9b6dba0bfc9ca24007ec60054bf75b8
MINOR: actions: add new function free_act_rule() to free a single rule

There was free_act_rules() that frees all rules from a head but nothing
to free a single rule. Currently some rulesets partially free their own
rules on parsing error, and we're seeing some regtests emit errors under
ASAN because of this.

Let's first extract the code to free a rule into its own function so
that it becomes possible to use it on a single rule.
include/haproxy/action.h
src/action.c