]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9867 syncprov: plug onetime leak
authorHoward Chu <hyc@openldap.org>
Thu, 16 Jun 2022 21:14:41 +0000 (22:14 +0100)
committerHoward Chu <hyc@openldap.org>
Thu, 16 Jun 2022 21:14:41 +0000 (22:14 +0100)
Since 43ebfa8fb42 ITS#6467

servers/slapd/overlays/syncprov.c

index 499988662bf5dfdd64f58b602e64402fffa35bab..4b6358fdd1cd895767dfd548959d6c33f278749f 100644 (file)
@@ -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 );