mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Plug addtional realBase memory leaks.
This commit is contained in:
parent
ff447a31e2
commit
bf5ecff613
@ -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 New Issue
Block a user