File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ PHP NEWS
34
34
memory_consumption or jit_buffer_size). (nielsdos)
35
35
. Fixed bug GH-18567 (Preloading with internal class alias triggers assertion
36
36
failure). (nielsdos)
37
+ . Fix leak of accel_globals->key. (nielsdos)
37
38
38
39
- PDO_OCI:
39
40
. Fixed bug GH-18494 (PDO OCI segfault in statement GC). (nielsdos)
Original file line number Diff line number Diff line change @@ -2937,12 +2937,10 @@ static void accel_globals_ctor(zend_accel_globals *accel_globals)
2937
2937
GC_MAKE_PERSISTENT_LOCAL (accel_globals -> key );
2938
2938
}
2939
2939
2940
- #ifdef ZTS
2941
2940
static void accel_globals_dtor (zend_accel_globals * accel_globals )
2942
2941
{
2943
2942
zend_string_free (accel_globals -> key );
2944
2943
}
2945
- #endif
2946
2944
2947
2945
#ifdef HAVE_HUGE_CODE_PAGES
2948
2946
# ifndef _WIN32
@@ -3384,6 +3382,8 @@ void accel_shutdown(void)
3384
3382
if (!ZCG (enabled ) || !accel_startup_ok ) {
3385
3383
#ifdef ZTS
3386
3384
ts_free_id (accel_globals_id );
3385
+ #else
3386
+ accel_globals_dtor (& accel_globals );
3387
3387
#endif
3388
3388
return ;
3389
3389
}
@@ -3398,6 +3398,8 @@ void accel_shutdown(void)
3398
3398
3399
3399
#ifdef ZTS
3400
3400
ts_free_id (accel_globals_id );
3401
+ #else
3402
+ accel_globals_dtor (& accel_globals );
3401
3403
#endif
3402
3404
3403
3405
if (!_file_cache_only ) {
You can’t perform that action at this time.
0 commit comments