mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
- Fix the memory limit fix.
This commit is contained in:
parent
61b28c586a
commit
55687ca216
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user