From ed0bed72b9b4b52c1f4949fc84062a2bc214d0a4 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 6 Dec 2005 23:10:14 +0000 Subject: [PATCH] plug leaks --- servers/slapd/overlays/syncprov.c | 3 +++ servers/slapd/syncrepl.c | 1 + 2 files changed, 4 insertions(+) diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index a62d0a0d0d..e5338de384 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -2419,6 +2419,9 @@ syncprov_db_destroy( syncprov_info_t *si = (syncprov_info_t *)on->on_bi.bi_private; if ( si ) { + if ( si->si_logs ) { + ch_free( si->si_logs ); + } ldap_pvt_thread_mutex_destroy( &si->si_mods_mutex ); ldap_pvt_thread_mutex_destroy( &si->si_ops_mutex ); ldap_pvt_thread_mutex_destroy( &si->si_csn_mutex ); diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 2fd3d59f59..8209e2d91c 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -695,6 +695,7 @@ do_syncrep2( if ( BER_BVISEMPTY( &syncUUID ) ) { Debug( LDAP_DEBUG_ANY, "do_syncrep2: " "got empty syncUUID\n", 0, 0, 0 ); + ldap_controls_free( rctrls ); rc = -1; goto done; } -- 2.39.5