------------------------------------------------------------ revno: 13140 revision-id: squid3@treenet.co.nz-20140603070507-rwpwigf8lg1ej3f8 parent: squid3@treenet.co.nz-20140603070253-t88u0vu6woi5l2y6 author: Alex Rousskov committer: Amos Jeffries branch nick: 3.4 timestamp: Tue 2014-06-03 01:05:07 -0600 message: Fix leak of ACLs related to adaptation access rules ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20140603070507-rwpwigf8lg1ej3f8 # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 # testament_sha1: f1c81f90397175ca1823acf6261e4fa6b344cd2c # timestamp: 2014-06-03 07:05:22 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 # base_revision_id: squid3@treenet.co.nz-20140603070253-\ # t88u0vu6woi5l2y6 # # Begin patch === modified file 'src/adaptation/AccessRule.cc' --- src/adaptation/AccessRule.cc 2013-05-13 22:48:23 +0000 +++ src/adaptation/AccessRule.cc 2014-06-03 07:05:07 +0000 @@ -1,5 +1,6 @@ #include "squid.h" #include "acl/Gadgets.h" +#include "acl/Tree.h" #include "adaptation/AccessRule.h" #include "adaptation/Service.h" #include "adaptation/ServiceGroups.h" @@ -14,7 +15,7 @@ Adaptation::AccessRule::~AccessRule() { - // XXX: leaking acls here? + delete acl; } void