]> granicus.if.org Git - php/commitdiff
Fixed memleak while using custom mm
authorXinchen Hui <laruence@php.net>
Sun, 8 Mar 2015 16:18:54 +0000 (00:18 +0800)
committerXinchen Hui <laruence@php.net>
Sun, 8 Mar 2015 16:18:54 +0000 (00:18 +0800)
Zend/zend_alloc.c

index b066eb0b1fb3d1c16fffe2244d42601637b1e6ce..6701ca49028b55e33893fc2ae8fee56d0a66ce5f 100644 (file)
@@ -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