]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9864 slapo-accesslog: plug onetime memleaks
authorHoward Chu <hyc@openldap.org>
Thu, 16 Jun 2022 15:10:59 +0000 (16:10 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 23 Jun 2022 18:47:16 +0000 (18:47 +0000)
servers/slapd/overlays/accesslog.c

index ed62c21029491ef9471fe1f473c94dbcbf112300..cbdaa53b51b98869c8d5e19c5dc32f8f12ec0151 100644 (file)
@@ -2283,6 +2283,8 @@ accesslog_db_destroy(
                ch_free( li->li_sids );
        if ( li->li_mincsn )
                ber_bvarray_free( li->li_mincsn );
+       if ( li->li_db_suffix.bv_val )
+               ch_free( li->li_db_suffix.bv_val );
        ldap_pvt_thread_mutex_destroy( &li->li_log_mutex );
        ldap_pvt_thread_mutex_destroy( &li->li_op_rmutex );
        free( li );