From: Howard Chu Date: Thu, 16 Jun 2022 21:14:41 +0000 (+0100) Subject: ITS#9867 syncprov: plug onetime leak X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d64f85e161081a61b1f46963f104b10080096df6;p=thirdparty%2Fopenldap.git ITS#9867 syncprov: plug onetime leak Since 43ebfa8fb42 ITS#6467 --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 499988662b..4b6358fdd1 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -4131,6 +4131,8 @@ syncprov_db_destroy( ber_bvarray_free( si->si_ctxcsn ); if ( si->si_sids ) ch_free( si->si_sids ); + if ( si->si_logbase.bv_val ) + ch_free( si->si_logbase.bv_val ); ldap_pvt_thread_mutex_destroy( &si->si_resp_mutex ); ldap_pvt_thread_mutex_destroy( &si->si_mods_mutex ); ldap_pvt_thread_mutex_destroy( &si->si_ops_mutex );