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:
Aurelien DARRAGON
2023-05-11 12:29:51 +02:00
committed by Christopher Faulet
parent cd9aff1321
commit c610095258
7 changed files with 16 additions and 47 deletions

View File

@@ -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));