]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: sample: fix memory leak in check_when_cond() when ACL is not found
authorWilly Tarreau <w@1wt.eu>
Sun, 26 Apr 2026 21:49:35 +0000 (23:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 27 Apr 2026 12:44:29 +0000 (14:44 +0200)
commita4f27d96c6be56806aa493f72718aea3c1e28a85
treeff74e5f422d5b21b6bdf7fa9babdc4e1a615453f
parenteb97e21a8f0d4f01bbcaeeacae2c1266def4b4cb
BUG/MINOR: sample: fix memory leak in check_when_cond() when ACL is not found

When find_acl_by_name() and find_acl_default() both fail when parsing
converter "when(ACL,foo)", the previously allocated acl_sample struct
is leaked. Free it before returning 0. This can be backported to stable
versions.
src/sample.c