Skip to content

Commit 55687ca

Browse files
author
Andi Gutmans
committed
- Fix the memory limit fix.
1 parent 61b28c5 commit 55687ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,10 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache)
456456

457457
for (i=1; i<MAX_CACHED_MEMORY; i++) {
458458
for (j=0; j<AG(cache_count)[i]; j++) {
459+
ptr = (zend_mem_header *) AG(cache)[i][j];
459460
#if MEMORY_LIMIT
460461
AG(allocated_memory) -= REAL_SIZE(ptr->size);
461462
#endif
462-
ptr = (zend_mem_header *) AG(cache)[i][j];
463463
REMOVE_POINTER_FROM_LIST(ptr);
464464
free(ptr);
465465
}

0 commit comments

Comments
 (0)