Bug #81419 [NEW]: A memory leak in accel_preload()

From: Date: Mon, 06 Sep 2021 08:23:28 +0000
Subject: Bug #81419 [NEW]: A memory leak in accel_preload()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236428@lists.php.net to get a copy of this message
From: dinghao dot liu at zju dot edu dot cn Operating system: Any PHP version: 8.0.10 Package: *Extensibility Functions Bug Type: Bug Bug description:A memory leak in accel_preload() 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 bug report at https://bugs.php.net/bug.php?id=81419&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81419&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81419&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81419&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81419&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81419&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81419&r=support Expected behavior: https://bugs.php.net/fix.php?id=81419&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81419&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81419&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81419&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81419&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81419&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81419&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81419&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81419&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81419&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81419&r=mysqlcfg

« previous php.bugs (#236428) next »