|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79332 php_istreams are never freed
Submitted: 2020-03-02 09:18 UTC Modified: 2020-03-02 09:18 UTC
From: Assigned: cmb (profile)
Status: Closed Package: COM related
PHP Version: 7.3Git-2020-03-02 (Git) OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2020-03-02 09:18 UTC]
Whenever COMPersistHelper::LoadFromStream() and ::SaveToStream()
are called, an php_istream is allocated, but is never freed.

Test script:
$ph = new COMPersistHelper(null);
var_dump($ph->LoadFromStream(fopen(__FILE__, 'r')));

Expected result:
no memory leak

Actual result:
memory leak


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-03-02 09:18 UTC]
-Assigned To: +Assigned To: cmb
 [2020-03-02 09:49 UTC]
Automatic comment on behalf of
Log: Fix #79332: php_istreams are never freed
 [2020-03-02 09:49 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jul 06 10:03:41 2022 UTC