]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add a cbdataReferenceDone() call to match the cbdataReference() call
authoradrian <>
Fri, 25 Oct 2002 05:22:29 +0000 (05:22 +0000)
committeradrian <>
Fri, 25 Oct 2002 05:22:29 +0000 (05:22 +0000)
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.

src/acl.cc

index 1a40b829f894e7ee3cbfbf36214fe13e3302709f..11424e18096268bca2e87c77f852cb7c7b9d6b20 100644 (file)
@@ -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);
 }