From f649d8a29cc6a8c7693124d870aceec4e58ddc54 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 13 Feb 2007 13:40:56 +0000 Subject: [PATCH] Cleanup si_ctxcsn and si_sids in db_destroy --- servers/slapd/overlays/syncprov.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index d78a25c032..5a399a43e8 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -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 ); -- 2.39.5