]> granicus.if.org Git - php/commitdiff
Fix counting number of leaks
authorMarcus Boerger <helly@php.net>
Wed, 20 Aug 2003 22:15:01 +0000 (22:15 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 20 Aug 2003 22:15:01 +0000 (22:15 +0000)
Zend/zend_alloc.c

index 509af4a7598d83dbbfe303677971a0295b6af6fe..cf93d722bacceeb64684ffcb44adbefab07b01d1 100644 (file)
@@ -548,6 +548,7 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache TSRMLS_DC)
                                if (!silent && total_leak_count>0) {
                                        zend_message_dispatcher(ZMSG_MEMORY_LEAK_REPEATED, (void *) (long) (total_leak_count));
                                }
+                               grand_total_leaks += total_leak_count;
                        }
 #endif
 #if MEMORY_LIMIT