com php-src: Fixed memleak while using custom mm: Zend/zend_a lloc.c

From: Date: Sun, 08 Mar 2015 16:18:54 +0000
Subject: com php-src: Fixed memleak while using custom mm: Zend/zend_a lloc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85327@lists.php.net to get a copy of this message
Commit: 5eabd979ffb2f0edb996baf91100197066a81a09 Author: Xinchen Hui <laruence@php.net> Mon, 9 Mar 2015 00:18:54 +0800 Parents: 51b96086d7e7f160256f8f1dd76df19ba0ddd091 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5eabd979ffb2f0edb996baf91100197066a81a09 Log: Fixed memleak while using custom mm Changed paths: M Zend/zend_alloc.c Diff: diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index b066eb0..6701ca4 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -1950,6 +1950,9 @@ void zend_mm_shutdown(zend_mm_heap *heap, int full, int silent) #if ZEND_MM_CUSTOM if (heap->use_custom_heap) { + if (full) { + heap->_free(heap); + } return; } #endif

« previous php.cvs (#85327) next »