diff options
author | Frank M. Kromann <fmk@php.net> | 2001-10-08 22:24:59 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2001-10-08 22:24:59 +0000 |
commit | 42cce22f2d30a5352dc7acf70ae6d78a422eeef9 (patch) | |
tree | 35b2e3b0f44411f614a72fe92e2a8426e74edd3a /ext/fbsql | |
parent | 6e9e37be3a32378d14cac7276ec84769f2bf9540 (diff) | |
download | php-git-42cce22f2d30a5352dc7acf70ae6d78a422eeef9.tar.gz |
use strdup to alloc memory refeed with free!
Diffstat (limited to 'ext/fbsql')
-rw-r--r-- | ext/fbsql/php_fbsql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fbsql/php_fbsql.c b/ext/fbsql/php_fbsql.c index f1313fc097..8c9e2fd230 100644 --- a/ext/fbsql/php_fbsql.c +++ b/ext/fbsql/php_fbsql.c @@ -364,7 +364,7 @@ static void php_fbsql_init_globals(zend_fbsql_globals *fbsql_globals) 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 @@ int mdOk(PHPFBLink* link, FBCMetaData* md, char* sql) else php_error(E_WARNING, "No message"); } - link->errorText = estrdup(emg); + link->errorText = strdup(emg); link->errorNo = 1; free(emg); fbcemdRelease(emd); |