From: Dmitry Stogov Date: Mon, 24 Jul 2006 08:15:26 +0000 (+0000) Subject: Fixed memory leaks detection X-Git-Tag: php-5.2.0RC1~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b7386acea88bd69692e8b88fd8e50ebaea39925;p=php Fixed memory leaks detection --- diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index d969912a00..1ebe1012f7 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -667,7 +667,7 @@ static long zend_mm_find_leaks(zend_mm_segment *segment, zend_mm_block *b) } else if (p->magic == MEM_BLOCK_CACHED) { /* skip it */ #endif - } else { + } else if (p->magic != MEM_BLOCK_LEAK) { zend_mm_panic("zend_mm_heap corrupted"); } }