Bug #65562 [Opn->Fbk]: memory leak in zend_parse_arg
| From: | johannes@php.net | Date: | Mon, 26 Aug 2013 20:53:04 +0000 |
| Subject: | Bug #65562 [Opn->Fbk]: memory leak in zend_parse_arg | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-181213@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65562&edit=1
ID: 65562
Updated by: johannes@php.net
Reported by: rrh at newrelic dot com
Summary: memory leak in zend_parse_arg
-Status: Open
+Status: Feedback
Type: Bug
Package: Performance problem
Operating System: all
PHP Version: 5.5.3
Block user comment: N
Private report: N
New Comment:
Please provide compilable code showing the issue. In general: We don't consider issues which
can't be triggered by userspace code as bug but expect extension authors to provide patches to
improve PHP.
Previous Comments:
------------------------------------------------------------------------
[2013-08-26 20:23:12] rrh at newrelic dot com
Description:
------------
Function zend_parse_arg leaks memory, as discovered when I ran valgrind with php test cases designed
to exercise a module we wrote.
zend_parse_arg calls zend_parse_arg_impl. Unfortunately, not all control flow paths to the return
in zend_parse_arg call efree to free up the memory allocated by zend_parse_arg_impl to hold the
error string. In my case, quiet != 0, so the lone efree (which has 2 additional guards) is not
called.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65562&edit=1