]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: cache: fix memory leak in parse_cache_rule error path
authorWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 13:26:32 +0000 (15:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 14:04:19 +0000 (16:04 +0200)
commit5830cf3ccf17a9fd7caa634d028309661779a4e6
treea554629fc7109af5847aeec36dca47ee088798cb
parent2dfbc311a8bc46e5b5ef8d31069d9cba75a08d3d
BUG/MINOR: cache: fix memory leak in parse_cache_rule error path

When the filter config (fconf) allocation fails in parse_cache_rule,
the previously allocated cache_flt_conf (cconf) and its strdup'd name
string are not freed. The error path only freed cconf but not
cconf->c.name, causing a memory leak.

No backport is needed.
src/cache.c