#48500 [Csd]: mysqli::init() memory leaks

From: Date: Tue, 09 Jun 2009 01:10:21 +0000
Subject: #48500 [Csd]: mysqli::init() memory leaks
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-138121@lists.php.net to get a copy of this message
ID: 48500 Updated by: scottmac@php.net Reported By: felipe@php.net Status: Closed Bug Type: MySQLi related Operating System: Linux PHP Version: 5.2CVS-2009-06-08 (CVS) New Comment: I meant bug #46109, the commit message is wrong for the original fix. Previous Comments: ------------------------------------------------------------------------ [2009-06-09 01:01:17] scottmac@php.net It's related to bug #46019 I've backported this to 5.2. ------------------------------------------------------------------------ [2009-06-08 20:04:03] felipe@php.net It's just reproduceable in 5.2. ------------------------------------------------------------------------ [2009-06-08 20:03:19] 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 === ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48500&edit=1

« previous php.bugs (#138121) next »