-Fix memory handling of persistent dba connections.

-Update tests.
# cdb and flatfile still FAIL for dba_popen since the known streams problem
This commit is contained in:
Marcus Boerger 2002-12-20 17:47:58 +00:00
parent 710e49a30b
commit efd314e767
11 changed files with 65 additions and 51 deletions

View file

@ -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();
}