From: Willy Tarreau Date: Tue, 15 Sep 2026 14:37:58 +0000 (+0200) Subject: BUG/MINOR: cfgparse-listen: release the previous description of the proxy X-Git-Tag: v3.5-dev9~165 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=0725c1a81bb252b4983b30848e85e56bd457c350;p=haproxy.git BUG/MINOR: cfgparse-listen: release the previous description of the proxy The proxy's "description" keyword did not release the previous value before assigning the new one, so the first one was leaked when the keyword was used twice, e.g. once in a defaults section and once in the proxy. Note that the global section's "description" does it properly. This may be backported to all supported versions. --- diff --git a/src/cfgparse-listen.c b/src/cfgparse-listen.c index fe5337fe8..b44376e06 100644 --- a/src/cfgparse-listen.c +++ b/src/cfgparse-listen.c @@ -749,6 +749,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm) d = calloc(1, len); if (!d) goto alloc_error; + ha_free(&curproxy->desc); curproxy->desc = d; d += snprintf(d, curproxy->desc + len - d, "%s", args[1]);