PHP :: Bug #32010 :: memleaks in mssql_fetch_batch()
| Bug #32010 | memleaks in mssql_fetch_batch() | ||||
|---|---|---|---|---|---|
| Submitted: | 2005-02-17 15:07 UTC | Modified: | 2005-08-08 23:32 UTC | ||
| From: | tony2001 at phpclub dot net | Assigned: | fmk (profile) | ||
| Status: | Closed | Package: | MSSQL related | ||
| PHP Version: | 5CVS-2005-02-17 | OS: | Linux | ||
| Private report: | No | CVE-ID: | None | ||
[2005-02-17 15:07 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-08-08 23:32 UTC] fmk@php.net