php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57573 several leaks in the functions allocating new statements
Submitted: 2007-03-13 10:41 UTC Modified: 2007-03-22 21:48 UTC
From: tony2001@php.net Assigned: kfbombar (profile)
Status: Closed Package: ibm_db2 (PECL)
PHP Version: 5.2.1 OS: Linux
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: tony2001@php.net
New email:
PHP Version: OS:

 

 [2007-03-13 10:41 UTC] tony2001@php.net
Description:
------------
Functions using _db2_new_stmt_struct() internal function to allocate new statement struct do not free the struct in case of error which results in leaks.
See db2_table_privileges(), db2_prepare() and others.
In these functions before RETURN_FALSE (after allocating the statement) you should destroy and free the statement struct.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-22 21:48 UTC] kfbombar at us dot ibm dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

This has been fixed and is in CVS Head.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 11:01:34 2025 UTC