Browse Source

- Fix the memory limit fix.

experimental/pre_new_hash_func
Andi Gutmans 25 years ago
parent
commit
55687ca216
  1. 2
      Zend/zend_alloc.c

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

Loading…
Cancel
Save