#32010 [Fbk->Csd]: memleaks in mssql_fetch_batch()
| From: | fmk@php.net | Date: | Mon, 08 Aug 2005 21:32:49 +0000 |
| Subject: | #32010 [Fbk->Csd]: memleaks in mssql_fetch_batch() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83208@lists.php.net to get a copy of this message | ||
ID: 32010
Updated by: fmk@php.net
Reported By: tony2001 at phpclub dot net
-Status: Feedback
+Status: Closed
Bug Type: MSSQL related
Operating System: Linux
PHP Version: 5CVS-2005-02-17
Assigned To: fmk
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-08-08 18:13:11] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-02-17 15:07:24] tony2001 at phpclub dot net
Description:
------------
mssql_fetch_batch() leaks in several places.
Reproduce code:
---------------
<?php
$c = mssql_connect($host, $user, $passwd);
mssql_select_db($dbase);
$r = mssql_query("SELECT * FROM test_table");
mssql_fetch_batch($r);
echo "Done\n";
?>
Expected result:
----------------
Done
Actual result:
--------------
/home/dev/php-src/ext/mssql/php_mssql.c(1065) : Freeing 0x082C0BE4 (3
bytes), script=/www/index.php
/home/dev/php-src/ext/mssql/php_mssql.c(1052) : Freeing 0x082C0BAC (3
bytes), script=/www/index.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32010&edit=1