From efd314e7676ee15fce07e282b0655b539eb1f5cc Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 20 Dec 2002 17:47:58 +0000 Subject: -Fix memory handling of persistent dba connections. -Update tests. # cdb and flatfile still FAIL for dba_popen since the known streams problem --- ext/dba/dba_dbm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/dba/dba_dbm.c') diff --git a/ext/dba/dba_dbm.c b/ext/dba/dba_dbm.c index 4eca420786..cb7664987b 100644 --- a/ext/dba/dba_dbm.c +++ b/ext/dba/dba_dbm.c @@ -78,14 +78,14 @@ DBA_OPEN_FUNC(dbm) return FAILURE; } - info->dbf = emalloc(sizeof(dba_dbm_data)); + info->dbf = pemalloc(sizeof(dba_dbm_data), info->flags&DBA_PERSISTENT); memset(info->dbf, 0, sizeof(dba_dbm_data)); return SUCCESS; } DBA_CLOSE_FUNC(dbm) { - efree(info->dbf); + pefree(info->dbf, info->flags&DBA_PERSISTENT); dbmclose(); } -- cgit v1.2.1