mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-7.4'
* PHP-7.4: Fix minor memory leak of CG(script_encoding_list)
This commit is contained in:
commit
f1436c4832
1 changed files with 5 additions and 0 deletions
|
@ -1105,6 +1105,11 @@ void zend_shutdown(void) /* {{{ */
|
|||
ZEND_MAP_PTR_SET_REAL_BASE(CG(map_ptr_base), NULL);
|
||||
CG(map_ptr_size) = 0;
|
||||
}
|
||||
if (CG(script_encoding_list)) {
|
||||
free(CG(script_encoding_list));
|
||||
CG(script_encoding_list) = NULL;
|
||||
CG(script_encoding_list_size) = 0;
|
||||
}
|
||||
#endif
|
||||
zend_destroy_rsrc_list_dtors();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue