mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 03:59:34 -05:00
ITS#5322 don't try to free a NULL locker
This commit is contained in:
parent
2660518c5d
commit
37d65aed6e
1 changed files with 1 additions and 1 deletions
|
|
@ -600,7 +600,7 @@ bdb_db_close( BackendDB *be, ConfigReply *cr )
|
|||
/* close db environment */
|
||||
if( bdb->bi_dbenv ) {
|
||||
/* Free cache locker if we enabled locking */
|
||||
if ( !( slapMode & SLAP_TOOL_QUICK )) {
|
||||
if ( !( slapMode & SLAP_TOOL_QUICK ) && bdb->bi_cache.c_locker ) {
|
||||
#if DB_VERSION_FULL >= 0x04060012
|
||||
XLOCK_ID_FREE(bdb->bi_dbenv, bdb->bi_cache.c_locker->id);
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue