From: Andrei Zmievski Date: Fri, 20 Dec 2002 16:47:15 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.0RC4~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c9dd72b76a8c2814d82ce046f173e130f3d113e;p=php MFH --- diff --git a/ext/dba/dba.c b/ext/dba/dba.c index baf82d63d9..43710d32ce 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -504,9 +504,9 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) 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; @@ -529,7 +529,7 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) 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);