mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Don't free bv_vals that were passed to ber_bvarray_add.
This commit is contained in:
parent
306e15d3bd
commit
d9a9899937
@ -109,7 +109,6 @@ Entry *deref_internal_r(
|
||||
ch_free( aliasDN.bv_val );
|
||||
|
||||
if( newe != NULL ) {
|
||||
free( dn.bv_val );
|
||||
cache_return_entry_r(&li->li_cache, entry );
|
||||
entry = newe;
|
||||
ber_dupbv( &dn, &entry->e_nname );
|
||||
@ -173,7 +172,6 @@ Entry *deref_internal_r(
|
||||
|
||||
if( newe != NULL ) {
|
||||
free(aliasDN.bv_val);
|
||||
free( dn.bv_val );
|
||||
cache_return_entry_r(&li->li_cache, sup );
|
||||
entry = newe;
|
||||
ber_dupbv( &dn, &entry->e_nname );
|
||||
@ -182,7 +180,6 @@ Entry *deref_internal_r(
|
||||
}
|
||||
|
||||
if ( newSup != NULL ) {
|
||||
free( dn.bv_val );
|
||||
cache_return_entry_r(&li->li_cache, sup );
|
||||
sup = newSup;
|
||||
ber_dupbv( &dn, &aliasDN );
|
||||
@ -197,7 +194,6 @@ Entry *deref_internal_r(
|
||||
}
|
||||
}
|
||||
|
||||
free( dn.bv_val );
|
||||
ber_bvarray_free( dnlist );
|
||||
return entry;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user