Re: cvs: php4 /ext/dba dba.c
| From: | (Marcus Börger) | Date: | Fri, 20 Dec 2002 17:17:07 +0000 |
| Subject: | Re: cvs: php4 /ext/dba dba.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-17306@lists.php.net to get a copy of this message | ||
Now we are using the wrong free function - but wait i am already at it...
marcus
At 17:45 20.12.2002, Andrei Zmievski wrote:
andrei Fri Dec 20 11:45:35 2002 EDTModified files:/php4/ext/dba dba.cLog: At least this problem exposed some leaks.. Index: php4/ext/dba/dba.c diff -u php4/ext/dba/dba.c:1.71 php4/ext/dba/dba.c:1.72--- php4/ext/dba/dba.c:1.71 Wed Dec 11 05:37:38 2002+++ php4/ext/dba/dba.c Fri Dec 20 11:45:34 2002 @@ -17,7 +17,7 @@+----------------------------------------------------------------------+*/ -/* $Id: dba.c,v 1.71 2002/12/11 10:37:38 helly Exp $ */ +/* $Id: dba.c,v 1.72 2002/12/20 16:45:34 andrei Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -508,9 +508,9 @@RETURN_FALSE; }- info = emalloc(sizeof(dba_info)); + info = pemalloc(sizeof(dba_info), persistent); memset(info, 0, sizeof(dba_info)); - info->path = estrdup(Z_STRVAL_PP(args[0])); + info->path = pestrdup(Z_STRVAL_PP(args[0]), persistent); info->mode = modenr; info->argc = ac - 3; info->argv = args + 3;@@ -533,7 +533,7 @@if (!error && lock_mode) { if (lock_dbf) { - info->lock.name = estrdup(info->path); + info->lock.name = pestrdup(info->path, persistent); lock_file_mode = file_mode; } else { spprintf(&info->lock.name, 0, "%s.lck", info->path);-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php