diff options
author | Marcus Boerger <helly@php.net> | 2002-12-20 17:47:58 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-12-20 17:47:58 +0000 |
commit | efd314e7676ee15fce07e282b0655b539eb1f5cc (patch) | |
tree | baf9c56a1a400886fbe21aefd0141be4df682b99 /ext/dba/dba_db4.c | |
parent | 710e49a30b67ca589f49a0db64b0fad08634a2e5 (diff) | |
download | php-git-efd314e7676ee15fce07e282b0655b539eb1f5cc.tar.gz |
-Fix memory handling of persistent dba connections.
-Update tests.
# cdb and flatfile still FAIL for dba_popen since the known streams problem
Diffstat (limited to 'ext/dba/dba_db4.c')
-rw-r--r-- | ext/dba/dba_db4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dba/dba_db4.c b/ext/dba/dba_db4.c index 06c6cdbd32..6cb2debcd7 100644 --- a/ext/dba/dba_db4.c +++ b/ext/dba/dba_db4.c @@ -81,7 +81,7 @@ DBA_OPEN_FUNC(db4) #endif dba_db4_data *data; - data = emalloc(sizeof(*data)); + data = pemalloc(sizeof(*data), info->flags&DBA_PERSISTENT); data->dbp = dbp; data->cursor = NULL; info->dbf = data; @@ -100,7 +100,7 @@ DBA_CLOSE_FUNC(db4) if (dba->cursor) dba->cursor->c_close(dba->cursor); dba->dbp->close(dba->dbp, 0); - efree(dba); + pefree(dba, info->flags&DBA_PERSISTENT); } DBA_FETCH_FUNC(db4) |