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:
parent
6bd909b42f
commit
d34b1ce5a2
|
@ -1452,7 +1452,7 @@ parse_cache_flt(char **args, int *cur_arg, struct proxy *px,
|
||||||
cconf = NULL;
|
cconf = NULL;
|
||||||
memprintf(err, "%s: multiple explicit declarations of the cache filter '%s'",
|
memprintf(err, "%s: multiple explicit declarations of the cache filter '%s'",
|
||||||
px->id, name);
|
px->id, name);
|
||||||
return -1;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Remove the implicit filter. <cconf> is kept for the explicit one */
|
/* Remove the implicit filter. <cconf> is kept for the explicit one */
|
||||||
|
|
Loading…
Reference in New Issue