mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-21 19:43:24 +02:00
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.
This commit is contained in:
@@ -34,6 +34,7 @@ struct dns_counters;
|
||||
int act_resolution_cb(struct resolv_requester *requester, struct dns_counters *counters);
|
||||
int act_resolution_error_cb(struct resolv_requester *requester, int error_code);
|
||||
const char *action_suggest(const char *word, const struct list *keywords, const char **extra);
|
||||
void free_act_rule(struct act_rule *rule);
|
||||
|
||||
static inline struct action_kw *action_lookup(struct list *keywords, const char *kw)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user