mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-04 18:53:25 +02:00
MINOR: tree-wide: use free_acl_cond() where relevant
Now that we have free_acl_cond(cond) function that does cond prune then frees cond, replace all occurences of this pattern: | prune_acl_cond(cond) | free(cond) with: | free_acl_cond(cond)
This commit is contained in:
committed by
Christopher Faulet
parent
cd9aff1321
commit
c610095258
@@ -528,10 +528,7 @@ void flt_ot_conf_scope_free(struct flt_ot_conf_scope **ptr)
|
||||
FLT_OT_LIST_DEL(&(acl->list));
|
||||
FLT_OT_FREE(acl);
|
||||
}
|
||||
if ((*ptr)->cond != NULL) {
|
||||
prune_acl_cond((*ptr)->cond);
|
||||
FLT_OT_FREE((*ptr)->cond);
|
||||
}
|
||||
free_acl_cond((*ptr)->cond);
|
||||
FLT_OT_LIST_DESTROY(context, &((*ptr)->contexts));
|
||||
FLT_OT_LIST_DESTROY(span, &((*ptr)->spans));
|
||||
FLT_OT_LIST_DESTROY(str, &((*ptr)->finish));
|
||||
|
||||
Reference in New Issue
Block a user