- Fix the memory limit fix.

This commit is contained in:
Andi Gutmans 2001-06-30 07:58:34 +00:00
parent 61b28c586a
commit 55687ca216

View File

@ -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);
}