1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Free internal_runtime_cache on shutdown for NTS

As is, the `internal_runtime_cache` is only free for ZTS builds; we
also free it for NTS builds on shutdown.

Co-authored-by: Bob Weinand <bobwei9@hotmail.com>

Closes GH-16402.
This commit is contained in:
Christoph M. Becker
2024-10-20 14:13:45 +02:00
parent 2c0fd883b2
commit fd39e230fd

View File

@@ -1210,6 +1210,10 @@ void zend_shutdown(void) /* {{{ */
CG(script_encoding_list) = NULL;
CG(script_encoding_list_size) = 0;
}
if (CG(internal_run_time_cache)) {
pefree(CG(internal_run_time_cache), 1);
CG(internal_run_time_cache) = NULL;
}
#endif
zend_map_ptr_static_last = 0;
zend_map_ptr_static_size = 0;