commit | 6a783e499c8d5a7a3a2cd8eccd8faf4c8828a8f3 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Mar 17 20:23:43 2022 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Mar 17 20:26:19 2022 +0100 |
tree | 7c69e8e158239fd3fa4997918ba4f76285ed9ae8 | |
parent | 211ea252d9b6dba0bfc9ca24007ec60054bf75b8 [diff] |
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.