Skip to content
Snippets Groups Projects
Commit c2c27c68 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix csne destroy

parent 3c310cab
No related branches found
No related tags found
No related merge requests found
......@@ -486,11 +486,13 @@ int backend_destroy(void)
if ( bd->be_pending_csn_list ) {
csne = LDAP_TAILQ_FIRST( bd->be_pending_csn_list );
while ( csne ) {
struct slap_csn_entry *tmp_csne = 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 );
ch_free( tmp_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