Skip to content
Snippets Groups Projects
Commit 292c568f authored by Jong Hyuk Choi's avatar Jong Hyuk Choi
Browse files

a fix to prev commit

parent 31a6de16
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment