diff options
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r-- | Zend/zend_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 632e13aeeb..9709528d8c 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -456,10 +456,10 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache) for (i=1; i<MAX_CACHED_MEMORY; i++) { for (j=0; j<AG(cache_count)[i]; j++) { + ptr = (zend_mem_header *) AG(cache)[i][j]; #if MEMORY_LIMIT AG(allocated_memory) -= REAL_SIZE(ptr->size); #endif - ptr = (zend_mem_header *) AG(cache)[i][j]; REMOVE_POINTER_FROM_LIST(ptr); free(ptr); } |