summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-06-30 07:58:34 +0000
committerAndi Gutmans <andi@php.net>2001-06-30 07:58:34 +0000
commit55687ca216423fc677cf7663abd30ca72fe170ed (patch)
tree14888ea5db2fdb459163f8c355bdaef172810b60
parent61b28c586a8340471ce9a04ba136f0416481b7de (diff)
downloadphp-git-55687ca216423fc677cf7663abd30ca72fe170ed.tar.gz
- Fix the memory limit fix.
-rw-r--r--Zend/zend_alloc.c2
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);
}