php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48500 mysqli::init() memory leaks
Submitted: 2009-06-08 20:03 UTC Modified: 2009-06-09 01:10 UTC
From: felipe@php.net Assigned:
Status: Closed Package: MySQLi related
PHP Version: 5.2CVS-2009-06-08 (CVS) 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: felipe@php.net
New email:
PHP Version: OS:

 

 [2009-06-08 20:03 UTC] felipe@php.net
Description:
------------
See below:

Reproduce code:
---------------
$x = new mysqli;
$x->init();$x->init();


Expected result:
----------------
No mem. leaks

Actual result:
--------------
[Mon Jun  8 16:59:13 2009]  Script:  '../bug.php'
/home/felipe/dev/php5_2/ext/mysqli/mysqli_api.c(1102) :  Freeing 0x09CAA2A0 (16 bytes), script=../bug.php
/home/felipe/dev/php5_2/Zend/zend_alloc.c(2391) : Actual location (location was relayed)
[Mon Jun  8 16:59:13 2009]  Script:  '../bug.php'
/home/felipe/dev/php5_2/ext/mysqli/mysqli_api.c(1109) :  Freeing 0x09CAB160 (12 bytes), script=../bug.php
/home/felipe/dev/php5_2/Zend/zend_alloc.c(2391) : Actual location (location was relayed)
=== Total 2 memory leaks detected ===


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-08 20:04 UTC] felipe@php.net
It's just reproduceable in 5.2.
 [2009-06-09 01:01 UTC] scottmac@php.net
It's related to bug #46019

I've backported this to 5.2.
 [2009-06-09 01:10 UTC] scottmac@php.net
I meant bug #46109, the commit message is wrong for the original fix.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC