php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68718 memleak in zlib
Submitted: 2015-01-02 08:46 UTC Modified: 2015-01-18 04:22 UTC
From: bugreports at internot dot info Assigned:
Status: No Feedback Package: Zlib related
PHP Version: master-Git-2015-01-02 (Git) OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
43 - 6 = ?
Subscribe to this entry?

 
 [2015-01-02 08:46 UTC] bugreports at internot dot info
Description:
------------
Hi,

In /ext/zlib/zlib_fopen_wrapper.c:
141                        self->gz_file = gzdopen(dup(fd), mode);

the handle opened by 'dup(fd)' is never closed, leading to memory leaks.

Thanks,


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-08 08:42 UTC] laruence@php.net
I am not sure, but gzclose supposed to close it?
 [2015-01-08 08:43 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2015-01-18 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Apr 21 18:01:27 2025 UTC