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.
return rule;
out_err:
- free(rule);
+ free_act_rule(rule);
return NULL;
}
return rule;
out_err:
- free(rule);
+ free_act_rule(rule);
return NULL;
}
return rule;
out_err:
- free(rule);
+ free_act_rule(rule);
return NULL;
}