|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 00:01:32 2024 UTC