BUG/MINOR: cache: Fix leak of cache name in error path

This issue was introduced in commit 99a17a2d91
which first appeared in tag v1.9-dev11. This bugfix should be backported
to HAProxy 1.9+.
This commit is contained in:
Tim Duesterhus 2020-01-18 01:46:18 +01:00 committed by Willy Tarreau
parent 6bd909b42f
commit d34b1ce5a2
1 changed files with 1 additions and 1 deletions

View File

@ -1452,7 +1452,7 @@ parse_cache_flt(char **args, int *cur_arg, struct proxy *px,
cconf = NULL;
memprintf(err, "%s: multiple explicit declarations of the cache filter '%s'",
px->id, name);
return -1;
goto error;
}
/* Remove the implicit filter. <cconf> is kept for the explicit one */