From: Marcus Boerger Date: Wed, 20 Aug 2003 22:15:01 +0000 (+0000) Subject: Fix counting number of leaks X-Git-Tag: RELEASE_0_7~537 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56e8757d77f8dda548eb8350d2306ab8cb27a8ac;p=php Fix counting number of leaks --- diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 509af4a759..cf93d722ba 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -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