php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39691 Memory leak in gd_info()
Submitted: 2006-11-30 12:41 UTC Modified: 2006-11-30 12:59 UTC
From: countzero1981 at gmail dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.4.4 OS: FreeBSD
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: countzero1981 at gmail dot com
New email:
PHP Version: OS:

 

 [2006-11-30 12:41 UTC] countzero1981 at gmail dot com
Description:
------------
Looks like function gd_info() has some memory leak inside. (GD version bundled 2.0.28)

Reproduce code:
---------------
<?php
echo 'Memory usage:' . memory_get_usage() . "\n";
gd_info();
echo 'Memory usage:' . memory_get_usage() . "\n";
?>

Expected result:
----------------
Memory usage:2711584
Memory usage:2711584

Actual result:
--------------
Memory usage:2711584
Memory usage:2712368

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-30 12:59 UTC] tony2001@php.net
Expected behaviour.
All memory leaks are reported by the memory manager.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 01:01:35 2025 UTC