mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 14:10:39 -05:00
Rework set_malloc/set_alloc calls
This commit is contained in:
parent
b6a3dad8f0
commit
b9a5fb52e0
1 changed files with 4 additions and 2 deletions
|
|
@ -232,8 +232,6 @@ DB_ENV *ldbm_initialize_env(const char *home, int dbcachesize, int *envdirok)
|
|||
|
||||
#if DB_VERSION_MINOR >= 3
|
||||
env->set_alloc( env, ldbm_malloc, NULL, NULL );
|
||||
#else
|
||||
env->set_malloc( env, ldbm_malloc );
|
||||
#endif
|
||||
|
||||
env->set_errcall( env, ldbm_db_errcall );
|
||||
|
|
@ -318,6 +316,10 @@ ldbm_open( DB_ENV *env, char *name, int rw, int mode, int dbcachesize )
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#if DB_VERSION_MINOR < 3
|
||||
ret->set_malloc( ret, ldbm_malloc );
|
||||
#endif
|
||||
|
||||
ret->set_pagesize( ret, DEFAULT_DB_PAGE_SIZE );
|
||||
|
||||
/* likely should use ber_mem* routines */
|
||||
|
|
|
|||
Loading…
Reference in a new issue