Skip to content

Commit 2a6f992

Browse files
committed
Fix leak of accel_globals->key
I don't know why this was guarded with ZTS, but it leaks on this test (and a few more): `./sapi/cli/php ./run-tests.php -c . --show-diff sapi/phpdbg/tests/stdin_001.phpt`
1 parent 68abc19 commit 2a6f992

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2964,9 +2964,7 @@ static void accel_globals_ctor(zend_accel_globals *accel_globals)
29642964

29652965
static void accel_globals_dtor(zend_accel_globals *accel_globals)
29662966
{
2967-
#ifdef ZTS
29682967
zend_string_free(accel_globals->key);
2969-
#endif
29702968
if (accel_globals->preloaded_internal_run_time_cache) {
29712969
pefree(accel_globals->preloaded_internal_run_time_cache, 1);
29722970
}

0 commit comments

Comments
 (0)