From: wessels <> Date: Fri, 6 Feb 1998 04:10:36 +0000 (+0000) Subject: need to set clear flag on memAlloc() calls X-Git-Tag: SQUID_3_0_PRE1~4157 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32b04693fdb6d5debe823824b2b5ce8aad3290c0;p=thirdparty%2Fsquid.git need to set clear flag on memAlloc() calls --- diff --git a/src/net_db.cc b/src/net_db.cc index 395728e23e..3412680cd8 100644 --- a/src/net_db.cc +++ b/src/net_db.cc @@ -1,6 +1,6 @@ /* - * $Id: net_db.cc,v 1.62 1998/02/05 20:54:38 wessels Exp $ + * $Id: net_db.cc,v 1.63 1998/02/05 21:10:36 wessels Exp $ * * DEBUG: section 37 Network Measurement Database * AUTHOR: Duane Wessels @@ -82,7 +82,7 @@ netdbHashDelete(const char *key) static void netdbHostInsert(netdbEntry * n, const char *hostname) { - net_db_name *x = memAllocate(MEM_NET_DB_NAME, 0); + net_db_name *x = memAllocate(MEM_NET_DB_NAME, 1); x->name = xstrdup(hostname); x->next = n->hosts; n->hosts = x; @@ -197,7 +197,7 @@ netdbAdd(struct in_addr addr) if (memInUse(MEM_NETDBENTRY) > Config.Netdb.high) netdbPurgeLRU(); if ((n = netdbLookupAddr(addr)) == NULL) { - n = memAllocate(MEM_NETDBENTRY, 0); + n = memAllocate(MEM_NETDBENTRY, 1); netdbHashInsert(n, addr); } return n; @@ -436,7 +436,7 @@ netdbReloadState(void) if ((t = strtok(NULL, w_space)) == NULL) continue; N.last_use_time = (time_t) atoi(t); - n = memAllocate(MEM_NETDBENTRY, 0); + n = memAllocate(MEM_NETDBENTRY, 1); xmemcpy(n, &N, sizeof(netdbEntry)); netdbHashInsert(n, addr); while ((t = strtok(NULL, w_space)) != NULL) {