mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-09 16:34:45 -05:00
bdb_entry_return must explicitly check for/free attr nvals.
This commit is contained in:
parent
e13246b965
commit
3505c326da
1 changed files with 12 additions and 0 deletions
|
|
@ -204,6 +204,18 @@ int bdb_entry_return(
|
|||
if( (void *) e->e_attrs != (void *) (e+1)) {
|
||||
attrs_free( e->e_attrs );
|
||||
}
|
||||
#ifdef SLAP_NVALUES
|
||||
else {
|
||||
/* nvals are not contiguous with the rest. oh well. */
|
||||
Attribute *a;
|
||||
for (a = e->e_attrs; a; a=a->a_next) {
|
||||
if (a->a_nvals) {
|
||||
ber_bvarray_free( a->a_nvals );
|
||||
a->a_nvals = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef BDB_HIER
|
||||
/* See if the DNs were changed by modrdn */
|
||||
|
|
|
|||
Loading…
Reference in a new issue