mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Plug addtional realBase memory leaks.
This commit is contained in:
parent
ff447a31e2
commit
bf5ecff613
1 changed files with 8 additions and 0 deletions
|
|
@ -237,6 +237,10 @@ ldbm_back_search(
|
|||
nrefs > 0 ? rbuf : NULL, nentries );
|
||||
idl_free( candidates );
|
||||
free( rbuf );
|
||||
|
||||
if( realBase != NULL) {
|
||||
free( realBase );
|
||||
}
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
|
|
@ -266,6 +270,10 @@ ldbm_back_search(
|
|||
cache_return_entry_r( &li->li_cache, e );
|
||||
idl_free( candidates );
|
||||
free( rbuf );
|
||||
|
||||
if( realBase != NULL) {
|
||||
free( realBase );
|
||||
}
|
||||
return( 0 );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue