memory leaks

Wylie Swanson wylie at storerunner.com
Thu May 18 21:55:49 EDT 2000


(2697)$ php -e sybase.html
X-Powered-By: PHP/4.0RC2
Content-type: text/html

1
1
There were 8 rows.
9DE1BF94-1F0F-11D4-A7FF-0008C7C54186<br>
9DE1BF8F-1F0F-11D4-A7FF-0008C7C54186<br>
9DE1BF94-1F0F-11D4-A7FF-0008C7C54186<br>
string.c(1658) :  Freeing 0x081EE3A4 (83 bytes), script=sybase.html
Last leak repeated 1 time
sybase.c(934) :  Freeing 0x081EDCFC (12 bytes), script=sybase.html
Last leak repeated 1 time


memory leaks?  This is a simple (even lame :-) script: to test with.  Any ideas, or
is there any data I can help supplement to make this problem easier to fix?

<?

        echo sybase_connect( "server", "user", "pwd" )."\n";
        echo sybase_select_db( "database" )."\n";

$result=sybase_query( "SELECT * FROM table" );
echo "There were ".sybase_num_rows($result)." rows.\n";
while ($tst = sybase_fetch_object($result))
{
        print $tst->f1."<br>\n";
}
$ok=sybase_free_result($result);
$ok=sybase_close();

?>




More information about the FreeTDS mailing list