com php-src: Free map_base_ptr during post_startup: Zend/zend.c
| From: | Nikita Popov | Date: | Thu, 28 Feb 2019 16:23:18 +0000 |
| Subject: | com php-src: Free map_base_ptr during post_startup: Zend/zend.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104911@lists.php.net to get a copy of this message | ||
Commit: ff315098f44cfe6483fd55eb434615c1f521eb10
Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 28 Feb 2019 17:23:18 +0100
Parents: 105a04aaac1686cdd35cc777d806ebac6d57e2f3
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ff315098f44cfe6483fd55eb434615c1f521eb10
Log:
Free map_base_ptr during post_startup
Changed paths:
M Zend/zend.c
Diff:
diff --git a/Zend/zend.c b/Zend/zend.c
index ba0a472..079581c 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -1011,6 +1011,8 @@ int zend_post_startup(void) /* {{{ */
compiler_globals->function_table = NULL;
free(compiler_globals->class_table);
compiler_globals->class_table = NULL;
+ free(compiler_globals->map_ptr_base);
+ compiler_globals->map_ptr_base = NULL;
if ((script_encoding_list = (zend_encoding **)compiler_globals->script_encoding_list)) {
compiler_globals_ctor(compiler_globals);
compiler_globals->script_encoding_list = (const zend_encoding **)script_encoding_list;