From: adrian <> Date: Fri, 25 Oct 2002 05:22:29 +0000 (+0000) Subject: Add a cbdataReferenceDone() call to match the cbdataReference() call X-Git-Tag: SQUID_3_0_PRE1~571 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4277be1cf4a76a63112d7338f9284b06c4b422ab;p=thirdparty%2Fsquid.git Add a cbdataReferenceDone() call to match the cbdataReference() call performed in aclChecklistCreate(). In a nutshell, this wasn't a memory leak, but it was a lock-leak - the acl itself wasn't being freed, but the refcount slowly crept upwards. --- diff --git a/src/acl.cc b/src/acl.cc index 1a40b829f8..11424e1809 100644 --- a/src/acl.cc +++ b/src/acl.cc @@ -1,5 +1,5 @@ /* - * $Id: acl.cc,v 1.290 2002/10/13 23:48:23 hno Exp $ + * $Id: acl.cc,v 1.291 2002/10/24 23:22:29 adrian Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -1848,6 +1848,7 @@ aclChecklistFree(aclCheck_t * checklist) requestUnlink(checklist->request); checklist->request = NULL; cbdataReferenceDone(checklist->conn); + cbdataReferenceDone(checklist->accessList); aclCheckCleanup(checklist); cbdataFree(checklist); }