From c6b39eb50d378908cd1d520f3c4677b1c873df86 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Mon, 24 Jun 2002 18:49:13 +0000 Subject: [PATCH] - More fixes (warnings, bug fixes etc.) --- Zend/zend_alloc.c | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index f64d48799ee..def9fa135c3 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -436,24 +436,15 @@ ZEND_API void start_memory_manager(TSRMLS_D) ZEND_API void shutdown_memory_manager(int silent, int clean_cache TSRMLS_DC) { zend_mem_header *p, *t; - unsigned int fci, i, j; + #if ZEND_DEBUG int had_leaks = 0; #endif - zend_fast_cache_list_entry *fast_cache_list_entry, *next_fast_cache_list_entry; -#ifdef ZEND_MM - if (clean_cache) { - zend_mm_shutdown(&AG(mm_heap)); - } - return; -#elif defined(ZEND_WIN32) && !ZEND_DEBUG - if (clean_cache && AG(memory_heap)) { - HeapDestroy(AG(memory_heap)); - return; - } -#endif #if ZEND_ENABLE_FAST_CACHE + zend_fast_cache_list_entry *fast_cache_list_entry, *next_fast_cache_list_entry; + unsigned int fci; + for (fci=0; fci