mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
BUG/MINOR: cache: Fix leak of cache name in error path
This issue was introduced in commit 99a17a2d91f9044ea20bba6617048488aed80555 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…
x
Reference in New Issue
Block a user