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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 04:01:26 2019 UTC