]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: proxy: free persist_rules
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 14 Jan 2026 10:19:13 +0000 (11:19 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 15 Jan 2026 08:08:18 +0000 (09:08 +0100)
commit2f6aab9211ff05d637e93a82e0f868ef31ce8e17
tree71cef7fa7d8bef8dd21e6d5fe13ae165cb508d04
parenta209c35f3071c1a7dc1b5b42dc99fef4c69aeb2e
BUG/MINOR: proxy: free persist_rules

force-persist proxy keyword is converted into a persist_rule, stored in
proxy persist_rules list member. Each new rule is dynamically allocated
during parsing.

This commit fixes the memory leak on deinit due to a missing free on
persist_rules list entries. This is done via deinit_proxy()
modification. Each rule in the list is freed, along with its associated
ACL condition type.

This can be backported to every stable version.
src/proxy.c