cvs: php4 /ext/fbsql php_fbsql.c

From: Date: Mon, 08 Oct 2001 22:25:00 +0000
Subject: cvs: php4 /ext/fbsql php_fbsql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7730@lists.php.net to get a copy of this message
fmk Mon Oct 8 18:25:00 2001 EDT Modified files: /php4/ext/fbsql php_fbsql.c Log: use strdup to alloc memory refeed with free! Index: php4/ext/fbsql/php_fbsql.c diff -u php4/ext/fbsql/php_fbsql.c:1.51 php4/ext/fbsql/php_fbsql.c:1.52 --- php4/ext/fbsql/php_fbsql.c:1.51 Mon Oct 8 12:42:19 2001 +++ php4/ext/fbsql/php_fbsql.c Mon Oct 8 18:24:59 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_fbsql.c,v 1.51 2001/10/08 16:42:19 fmk Exp $ */ +/* $Id: php_fbsql.c,v 1.52 2001/10/08 22:24:59 fmk Exp $ */ /* TODO: * @@ -364,7 +364,7 @@ char name[256]; gethostname(name, sizeof(name)); name[sizeof(name)-1] = 0; - fbsql_globals->hostName = estrdup(name); + fbsql_globals->hostName = strdup(name); } fbsql_globals->persistantCount = 0; @@ -1531,7 +1531,7 @@ else php_error(E_WARNING, "No message"); } - link->errorText = estrdup(emg); + link->errorText = strdup(emg); link->errorNo = 1; free(emg); fbcemdRelease(emd);

« previous php.cvs (#7730) next »