From: Howard Chu Date: Thu, 16 Jun 2022 21:14:41 +0000 (+0100) Subject: ITS#9867 syncprov: plug onetime leak X-Git-Tag: OPENLDAP_REL_ENG_2_5_13~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=189cefd72dc62ee6f157ba587e8f7292e88b8817;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 868bb114ee..6c99bde1a4 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -4139,6 +4139,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 );