mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
ITS#6256 from Jonathan Clarke
This commit is contained in:
parent
b87553684a
commit
f918243a2f
@ -3729,12 +3729,14 @@ syncinfo_free( syncinfo_t *sie, int free_all )
|
||||
}
|
||||
ch_free( npe );
|
||||
}
|
||||
sie->si_cookieState->cs_ref--;
|
||||
if ( !sie->si_cookieState->cs_ref ) {
|
||||
ch_free( sie->si_cookieState->cs_sids );
|
||||
ber_bvarray_free( sie->si_cookieState->cs_vals );
|
||||
ldap_pvt_thread_mutex_destroy( &sie->si_cookieState->cs_mutex );
|
||||
ch_free( sie->si_cookieState );
|
||||
if ( sie->si_cookieState ) {
|
||||
sie->si_cookieState->cs_ref--;
|
||||
if ( !sie->si_cookieState->cs_ref ) {
|
||||
ch_free( sie->si_cookieState->cs_sids );
|
||||
ber_bvarray_free( sie->si_cookieState->cs_vals );
|
||||
ldap_pvt_thread_mutex_destroy( &sie->si_cookieState->cs_mutex );
|
||||
ch_free( sie->si_cookieState );
|
||||
}
|
||||
}
|
||||
ch_free( sie );
|
||||
sie = si_next;
|
||||
|
Loading…
x
Reference in New Issue
Block a user