]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 23 Jun 2022 18:47:35 +0000 (18:47 +0000)
Since 43ebfa8fb42 ITS#6467

servers/slapd/overlays/syncprov.c

index 868bb114ee9c701d73aee855f11022c0797f2b43..6c99bde1a486d3af59f8f70f3f6a7f6e5b3e8d76 100644 (file)
@@ -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 );