]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Replace safe_free() with the appropriate memFree() now that these two
authoradrian <>
Sat, 25 Nov 2000 21:51:04 +0000 (21:51 +0000)
committeradrian <>
Sat, 25 Nov 2000 21:51:04 +0000 (21:51 +0000)
objects are from memory pools. (I believe it was me who converted them
initially, but missed this..)

Submitted by: Andres Kroonmaa <andre@online.ee>

src/cache_cf.cc

index 59d335421f71be02c4a5da99f492e324cff2d6ec..51dceba1f196fbbba78b7fd05efc72f9ffdf0fc6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.355 2000/11/15 12:53:50 adrian Exp $
+ * $Id: cache_cf.cc,v 1.356 2000/11/25 14:51:04 adrian Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -1232,10 +1232,12 @@ free_denyinfo(acl_deny_info_list ** list)
     for (a = *list; a; a = a_next) {
        for (l = a->acl_list; l; l = l_next) {
            l_next = l->next;
-           safe_free(l);
+           memFree(l, MEM_ACL_NAME_LIST);
+            l = NULL;
        }
        a_next = a->next;
-       safe_free(a);
+        memFree(a, MEM_ACL_DENY_INFO_LIST);
+        a = NULL;
     }
     *list = NULL;
 }