patch to head and 2.4 for cache_cf.c

From: Andres Kroonmaa <andre@dont-contact.us>
Date: Sat, 25 Nov 2000 02:13:55 +0200

 these items are alloced on mempools.
 avoids crashes on reconfigure.

 Index: cache_cf.c
===================================================================
RCS file: /cvsroot/squid/squid/src/cache_cf.c,v
retrieving revision 1.3
diff -u -r1.3 cache_cf.c
--- cache_cf.c 2000/10/23 15:04:20 1.3
+++ cache_cf.c 2000/11/25 00:16:51
@@ -1230,10 +1230,10 @@
     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;
 }

------------------------------------
 Andres Kroonmaa <andre@online.ee>
 Delfi Online
 Tel: 6501 731, Fax: 6501 708
 Pärnu mnt. 158, Tallinn,
 11317 Estonia
Received on Fri Nov 24 2000 - 17:17:39 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:00 MST