mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 19:49:35 -05:00
Fix ITS#1994, Windows heap consistency
This commit is contained in:
parent
40f3da36b0
commit
771f70eb0f
1 changed files with 6 additions and 0 deletions
|
|
@ -34,6 +34,9 @@ static struct bdbi_database {
|
|||
|
||||
struct berval bdb_uuid = { 0, NULL };
|
||||
|
||||
typedef void * db_malloc(size_t);
|
||||
typedef void * db_realloc(void *, size_t);
|
||||
|
||||
static int
|
||||
bdb_open( BackendInfo *bi )
|
||||
{
|
||||
|
|
@ -196,6 +199,9 @@ bdb_db_open( BackendDB *be )
|
|||
return rc;
|
||||
}
|
||||
|
||||
bdb->bi_dbenv->set_alloc( bdb->bi_dbenv, (db_malloc *)ber_memalloc,
|
||||
(db_realloc *)ber_memrealloc, ber_memfree );
|
||||
|
||||
flags = DB_INIT_MPOOL | DB_THREAD | DB_CREATE
|
||||
| DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_TXN;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue