mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
plug yet another leak
This commit is contained in:
parent
6fb9790a15
commit
7ceaad7eb2
@ -2308,10 +2308,15 @@ syncprov_operational(
|
||||
a = attr_find( rs->sr_entry->e_attrs,
|
||||
slap_schema.si_ad_contextCSN );
|
||||
}
|
||||
free( a->a_vals );
|
||||
if ( a->a_nvals != a->a_vals ) {
|
||||
ber_bvarray_free( a->a_nvals );
|
||||
}
|
||||
a->a_nvals = NULL;
|
||||
ber_bvarray_free( a->a_vals );
|
||||
a->a_vals = NULL;
|
||||
}
|
||||
ber_bvarray_dup_x( &a->a_vals, si->si_ctxcsn, NULL );
|
||||
a->a_nvals = a->a_vals;
|
||||
ber_bvarray_dup_x( &a->a_nvals, si->si_ctxcsn, NULL );
|
||||
}
|
||||
ldap_pvt_thread_rdwr_runlock( &si->si_csn_rwlock );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user