]> 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)
committerHoward Chu <hyc@openldap.org>
Fri, 17 Jun 2022 13:41:50 +0000 (14:41 +0100)
servers/slapd/overlays/accesslog.c

index 0345a849a6b6e77afd523dada1fa2f8fda21b6bd..6b63bc748dece49e1ecc2c33f6a3f66e2133799e 100644 (file)
@@ -2373,6 +2373,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 );