From: wessels <> Date: Fri, 13 Mar 1998 12:41:37 +0000 (+0000) Subject: tune up shutdown() X-Git-Tag: SQUID_3_0_PRE1~3851 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26a369babcd2fd0dcba6a04478909abf76044d28;p=thirdparty%2Fsquid.git tune up shutdown() --- diff --git a/src/main.cc b/src/main.cc index 90c4f3f1a3..a35225a0d3 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.235 1998/03/12 21:19:46 wessels Exp $ + * $Id: main.cc,v 1.236 1998/03/13 05:41:37 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -375,7 +375,7 @@ mainReconfigure(void) snmpConnectionClose(); #endif dnsShutdownServers(); - asnCleanup(); + asnFreeMemory(); redirectShutdownServers(); storeDirCloseSwapLogs(); errorFree(); @@ -743,23 +743,20 @@ normal_shutdown(void) ipcacheFreeMemory(); fqdncacheFreeMemory(); asnFreeMemory(); + clientdbFreeMemory(); httpHeaderCleanModule(); #endif -#if WHY_DO_THIS + memClean(); +#if !XMALLOC_TRACE file_close(0); file_close(1); file_close(2); #endif fdDumpOpen(); fdFreeMemory(); - memClean(); #if XMALLOC_TRACE - { - extern int xmalloc_total; - extern void xmalloc_find_leaks(void); - xmalloc_find_leaks(); - debug(1, 0) ("Memory used after shutdown: %d\n", xmalloc_total); - } + xmalloc_find_leaks(); + debug(1, 0) ("Memory used after shutdown: %d\n", xmalloc_total); #endif #if MEM_GEN_TRACE log_trace_done();