Bug #66334 [Opn->Csd]: Memory Leak in new pass1_5.c optimizations
| From: | dmitry@php.net | Date: | Mon, 23 Dec 2013 12:06:57 +0000 |
| Subject: | Bug #66334 [Opn->Csd]: Memory Leak in new pass1_5.c optimizations | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183444@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66334&edit=1
ID: 66334
Updated by: dmitry@php.net
Reported by: Terry at ellisons dot org dot uk
Summary: Memory Leak in new pass1_5.c optimizations
-Status: Open
+Status: Closed
Type: Bug
Package: opcache
Operating System: N/A
PHP Version: master-Git-2013-12-21 (Git)
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ccb29a6e41afc3a5ced31e86951fca5119a2e8d0
Log: Fixed bug #66334 (Memory Leak in new pass1_5.c optimizations). (Terry)
Previous Comments:
------------------------------------------------------------------------
[2013-12-21 16:01:33] Terry at ellisons dot org dot uk
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 this bug report at https://bugs.php.net/bug.php?id=66334&edit=1