From: adrian <> Date: Sat, 25 Nov 2000 21:51:04 +0000 (+0000) Subject: Replace safe_free() with the appropriate memFree() now that these two X-Git-Tag: SQUID_3_0_PRE1~1759 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3314e65b206ee56f4fee718a19f9a5ed52bb2214;p=thirdparty%2Fsquid.git Replace safe_free() with the appropriate memFree() now that these two objects are from memory pools. (I believe it was me who converted them initially, but missed this..) Submitted by: Andres Kroonmaa --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 59d335421f..51dceba1f1 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -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; }