]> granicus.if.org Git - php/commitdiff
- Fix the memory limit fix.
authorAndi Gutmans <andi@php.net>
Sat, 30 Jun 2001 07:58:34 +0000 (07:58 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 30 Jun 2001 07:58:34 +0000 (07:58 +0000)
Zend/zend_alloc.c

index 632e13aeeb9f958101cb91c8cac7622b79b6e520..9709528d8c6cfededac324dad47bba66fe2286dc 100644 (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);
                        }