From: Nikita Popov Date: Thu, 3 Sep 2020 10:59:30 +0000 (+0200) Subject: Fix leaks in sapi tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9464576f2902c3f2bbef7478cbeefb42dda6cca0;p=php Fix leaks in sapi tests Make sure to always free compiled_filename on shutdown. --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 21db0a3f7d..36715c7bb5 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -437,6 +437,7 @@ void shutdown_compiler(void) /* {{{ */ FREE_HASHTABLE(CG(delayed_autoloads)); CG(delayed_autoloads) = NULL; } + zend_restore_compiled_filename(NULL); } /* }}} */