mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Wrap csn filter frees with sync mode check.
This commit is contained in:
parent
88c8cca820
commit
a1da292989
1 changed files with 8 additions and 5 deletions
|
|
@ -794,6 +794,7 @@ loop_continue:
|
|||
|
||||
ldap_pvt_thread_yield();
|
||||
}
|
||||
|
||||
#ifdef LDAP_CLIENT_UPDATE
|
||||
if ( op->o_clientupdate_type & SLAP_LCUP_SYNC ) {
|
||||
int ret;
|
||||
|
|
@ -866,12 +867,14 @@ done:
|
|||
}
|
||||
|
||||
#ifdef LDAP_CLIENT_UDATE
|
||||
if ( csnfeq.f_ava != NULL && csnfeq.f_av_value.bv_val != NULL ) {
|
||||
ch_free( csnfeq.f_av_value.bv_val );
|
||||
}
|
||||
if ( op->o_clientupdate_type & SLAP_LCUP_SYNC ) {
|
||||
if ( csnfeq.f_ava != NULL && csnfeq.f_av_value.bv_val != NULL ) {
|
||||
ch_free( csnfeq.f_av_value.bv_val );
|
||||
}
|
||||
|
||||
if ( csnfge.f_ava != NULL && csnfge.f_av_value.bv_val != NULL ) {
|
||||
ch_free( csnfge.f_av_value.bv_val );
|
||||
if ( csnfge.f_ava != NULL && csnfge.f_av_value.bv_val != NULL ) {
|
||||
ch_free( csnfge.f_av_value.bv_val );
|
||||
}
|
||||
}
|
||||
#endif /* LDAP_CLIENT_UPDATE */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue