diff options
| author | Xinchen Hui <laruence@php.net> | 2015-03-09 00:18:54 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@php.net> | 2015-03-09 00:18:54 +0800 |
| commit | 5eabd979ffb2f0edb996baf91100197066a81a09 (patch) | |
| tree | c6adad03a47c169de43d730baf035fd0a196629f /Zend/zend_alloc.c | |
| parent | 51b96086d7e7f160256f8f1dd76df19ba0ddd091 (diff) | |
| download | php-git-5eabd979ffb2f0edb996baf91100197066a81a09.tar.gz | |
Fixed memleak while using custom mm
Diffstat (limited to 'Zend/zend_alloc.c')
| -rw-r--r-- | Zend/zend_alloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index b066eb0b1f..6701ca4902 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 |
