mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 03:29:35 -05:00
ITS#6074 freeing already-freed EntryInfos...
This commit is contained in:
parent
c7142fdec5
commit
6e27fa5076
1 changed files with 7 additions and 0 deletions
|
|
@ -1345,6 +1345,9 @@ bdb_cache_delete_cleanup(
|
|||
{
|
||||
/* Enter with ei locked */
|
||||
|
||||
/* already freed? */
|
||||
if ( !ei->bei_parent ) return;
|
||||
|
||||
if ( ei->bei_e ) {
|
||||
ei->bei_e->e_private = NULL;
|
||||
#ifdef SLAP_ZONE_ALLOC
|
||||
|
|
@ -1368,6 +1371,10 @@ bdb_cache_delete_internal(
|
|||
int rc = 0; /* return code */
|
||||
int decr_leaf = 0;
|
||||
|
||||
/* already freed? */
|
||||
if ( !e->bei_parent )
|
||||
return -1;
|
||||
|
||||
/* Lock the parent's kids tree */
|
||||
bdb_cache_entryinfo_lock( e->bei_parent );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue