a fix to prev commit

This commit is contained in:
Jong Hyuk Choi 2004-09-25 03:21:30 +00:00
parent 31a6de16b0
commit 292c568f36

View File

@ -484,10 +484,12 @@ int backend_destroy(void)
}
if ( bd->be_pending_csn_list ) {
LDAP_TAILQ_FOREACH( csne, bd->be_pending_csn_list, ce_csn_link ) {
csne = LDAP_TAILQ_FIRST( bd->be_pending_csn_list );
while ( csne ) {
LDAP_TAILQ_REMOVE( bd->be_pending_csn_list, csne, ce_csn_link );
ch_free( csne->ce_csn->bv_val );
ch_free( csne->ce_csn );
csne = LDAP_TAILQ_NEXT( csne, ce_csn_link );
ch_free( csne );
}
}