mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
CLEANUP: config: use free_args() to release args array in cfg_eval_condition()
Doing so is cleaner than open-coding it and will support future extensions.
This commit is contained in:
parent
ab213a5b6f
commit
c15221b80c
@ -1827,11 +1827,8 @@ int cfg_eval_condition(char **args, char **err, const char **errptr)
|
||||
if (errptr)
|
||||
*errptr = args[0];
|
||||
done:
|
||||
for (nbargs = 0; argp && argp[nbargs].type != ARGT_STOP; nbargs++) {
|
||||
if (argp[nbargs].type == ARGT_STR)
|
||||
free(argp[nbargs].data.str.area);
|
||||
}
|
||||
free(argp);
|
||||
free_args(argp);
|
||||
ha_free(&argp);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user