Memory leak when writing on uninitialized variable returned from function
| Bug #52041 | Memory leak when writing on uninitialized variable returned from function | ||||
|---|---|---|---|---|---|
| Submitted: | 2010-06-10 19:18 UTC | Modified: | 2010-06-15 10:25 UTC | ||
| From: | felipe@php.net | Assigned: | dmitry (profile) | ||
| Status: | Closed | Package: | Scripting Engine problem | ||
| PHP Version: | 5.2, 5.3, Trunk | OS: | Linux | ||
| Private report: | No | CVE-ID: | None | ||
[2010-06-10 19:18 UTC] felipe@php.net
Description:
------------
See below.
Test script:
---------------
<?php
function foo() {
return $x;
}
foo()->a = 1;
Expected result:
----------------
No memory leak.
Actual result:
--------------
Zend/zend_execute.c(723) : Freeing 0x0A395E1C (20 bytes), script=../bug.php
=== Total 1 memory leaks detected ===
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2010-06-10 19:18 UTC] felipe@php.net
-Status: Open +Status: Assigned -PHP Version: Irrelevant +PHP Version: 5.2, 5.3, Trunk -Assigned To: +Assigned To: dmitry
[2010-06-10 19:19 UTC] felipe@php.net
[2010-06-15 10:25 UTC] dmitry@php.net
-Status: Assigned +Status: Closed
[2010-06-15 10:25 UTC] dmitry@php.net