]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix memory leak when reconfiguring multiline all-of ACLs (#1425)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 23 Jul 2023 01:38:19 +0000 (01:38 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 23 Jul 2023 20:00:17 +0000 (20:00 +0000)
commit8095d0c8c93d5af5f95d363d56c4e58e69eeef6d
tree2fb3959946c756c84ee7e59820a1f4a2da4dcf4d
parent53a5a6de2c7e5c194531531ceae911d92eae129c
Fix memory leak when reconfiguring multiline all-of ACLs (#1425)

Normally, Acl::InnerNode::add() automatically registers stored ACL nodes
for future cleanup, but when we find the second all-of rule/line (with
the same ACL name), we do not add() the newly created OrNode and have to
explicitly register it to avoid memory leaks on reconfiguration.

Leaking since all-of ACL support was added in 2013 commit 6f58d7d.
src/acl/AllOf.cc