Bug #66334 [NEW]: Memory Leak in new pass1_5.c optimizations

From: Date: Sat, 21 Dec 2013 16:01:34 +0000
Subject: Bug #66334 [NEW]: Memory Leak in new pass1_5.c optimizations
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183430@lists.php.net to get a copy of this message
From: Terry at ellisons dot org dot uk Operating system: N/A PHP version: master-Git-2013-12-21 (Git) Package: opcache Bug Type: Bug Bug description:Memory Leak in new pass1_5.c optimizations Description: ------------ The extension_loaded code emallocs a temporary string to *lc_name, but on the two short-circuits which skip this don't efree it. Test script: --------------- I have updated https://gist.github.com/TerryE/8048948 to show this. Expected result: ---------------- See test but must be run on a --enable-debug build. A Freeing error is reported on the "not-extension" string -- Edit bug report at https://bugs.php.net/bug.php?id=66334&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66334&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66334&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66334&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66334&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66334&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66334&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66334&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66334&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66334&r=support Expected behavior: https://bugs.php.net/fix.php?id=66334&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66334&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66334&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66334&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66334&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66334&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66334&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66334&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66334&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66334&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66334&r=mysqlcfg

« previous php.bugs (#183430) next »