From: Dmitry Stogov Date: Wed, 20 Feb 2019 15:18:44 +0000 (+0300) Subject: Supress memory leak reports X-Git-Tag: php-7.4.0alpha1~939 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16d0824aef5d41f49889fa967ffbf09386f5a62a;p=php Supress memory leak reports --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 60be360119..ff76eb9a63 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -4106,6 +4106,9 @@ static int accel_finish_startup(void) zend_bool old_reset_signals = SIGG(reset); #endif + /* Cleanup heap, to avoid memory leak reports */ + shutdown_memory_manager(1, 0); + if (UNEXPECTED(file_cache_only)) { zend_accel_error(ACCEL_LOG_WARNING, "Preloading doesn't work in \"file_cache_only\" mode"); return SUCCESS;