php.net |  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: cmb@php.net Assigned: cmb (profile)
Status: Closed Package: COM related
PHP Version: 7.3Git-2020-03-02 (Git) OS: Windows
Private report: No CVE-ID: None
 [2020-03-02 09:18 UTC] cmb@php.net
Description:
------------
Whenever COMPersistHelper::LoadFromStream() and ::SaveToStream()
are called, an php_istream is allocated, but is never freed.


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


Expected result:
----------------
no memory leak

Actual result:
--------------
memory leak

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-03-02 09:18 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2020-03-02 09:49 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=2adf1c4d23467424012db1971d0a0a678d10d782
Log: Fix #79332: php_istreams are never freed
 [2020-03-02 09:49 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 10:01:29 2024 UTC