From 9464576f2902c3f2bbef7478cbeefb42dda6cca0 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 3 Sep 2020 12:59:30 +0200 Subject: [PATCH] Fix leaks in sapi tests Make sure to always free compiled_filename on shutdown. --- Zend/zend_compile.c | 1 + 1 file changed, 1 insertion(+) 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); } /* }}} */ -- 2.50.1