]> git.sur5r.net Git - openldap/commitdiff
Cleanup si_ctxcsn and si_sids in db_destroy
authorHoward Chu <hyc@openldap.org>
Tue, 13 Feb 2007 13:40:56 +0000 (13:40 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 13 Feb 2007 13:40:56 +0000 (13:40 +0000)
servers/slapd/overlays/syncprov.c

index d78a25c0326f707d8fee982460cdcb2c846e5345..5a399a43e89493a3e90d87f721de585e510575af 100644 (file)
@@ -2669,6 +2669,10 @@ syncprov_db_destroy(
                                
                        ch_free( si->si_logs );
                }
+               if ( si->si_ctxcsn )
+                       ber_bvarray_free( si->si_ctxcsn );
+               if ( si->si_sids )
+                       ch_free( si->si_sids );
                ldap_pvt_thread_mutex_destroy( &si->si_mods_mutex );
                ldap_pvt_thread_mutex_destroy( &si->si_ops_mutex );
                ldap_pvt_thread_rdwr_destroy( &si->si_csn_rwlock );