[PHP-DEV] PHP 4.0 Bug #2008: Memory leak in pgsql.c From: christophe.massiot <email protected>
Date: 08/09/99

From: christophe.massiot <email protected>
Operating system: Linux 2.0.36/Debian slink
PHP version: 4.0 Latest CVS (09/08/1999)
PHP Bug Type: PostgreSQL related
Bug description: Memory leak in pgsql.c

The following script using postgresql functions :

<?
  pg_connect("localhost", 5432, "", "", "webase3");
  $toto = pg_exec("select * from MEMBRE where login='MASSIOT'");
  pg_fetch_array($toto, 0);
?>

produces on pg_fetch_array() :

18:50 [webase3:p3] titi:~% php toto.php
Content-Type: text/html

toto.php: Freeing 0x080FADE8 (1 bytes), allocated in pgsql.c on line 915<br>
toto.php: Last leak repeated 26 times

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>