com php-src: Supress memory leak reports: ext/opcache/ZendAccelerator.c

From: Date: Wed, 20 Feb 2019 15:18:44 +0000
Subject: com php-src: Supress memory leak reports: ext/opcache/ZendAccelerator.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-104784@lists.php.net to get a copy of this message
Commit: 16d0824aef5d41f49889fa967ffbf09386f5a62a Author: Dmitry Stogov <dmitry@zend.com> Wed, 20 Feb 2019 18:18:44 +0300 Parents: 967fa51db01c5342a6f18b841a9003b62bed26a4 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=16d0824aef5d41f49889fa967ffbf09386f5a62a Log: Supress memory leak reports Changed paths: M ext/opcache/ZendAccelerator.c Diff: diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 60be360..ff76eb9 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;

« previous php.cvs (#104784) next »