Bug #81419 [Opn->Fbk]: A memory leak in accel_preload()
Edit report at https://bugs.php.net/bug.php?id=81419&edit=1
ID: 81419
Updated by: felipe@php.net
Reported by: dinghao dot liu at zju dot edu dot cn
Summary: A memory leak in accel_preload()
-Status: Open
+Status: Feedback
Type: Bug
Package: opcache
Operating System: Any
PHP Version: 8.0.10
Block user comment: N
Private report: N
New Comment:
Hello,
Can you provide a proper .php test case?
Previous Comments:
------------------------------------------------------------------------
[2021-09-06 08:23:28] dinghao dot liu at zju dot edu dot cn
Description:
------------
There is a suspected memleak issue in ext/opcache/ZendAccelerator.c. In function accel_preload(),
variable 'preload_scripts' is allocated at line 4453 through emalloc(). All paths after
this allocation will execute the cleanup against this variable at 'finish' label, except
for one error handling path on failure of preload_optimize() at line 4687, which may cause a
memleak.
This bug is suggested by a static analysis tool, please advise.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81419&edit=1
Thread (6 messages)