]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#6467 Plug a shutdown leak
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 11 May 2021 16:03:52 +0000 (17:03 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 13 May 2021 20:14:55 +0000 (20:14 +0000)
servers/slapd/overlays/accesslog.c

index c1daedcd7699a5aeb453a87585a32fc8ccf88c50..cb63af2d11bf7120789c040944bcb3dc60ce3158 100644 (file)
@@ -2255,6 +2255,10 @@ accesslog_db_destroy(
                li->li_oldattrs = la->next;
                ch_free( la );
        }
+       if ( li->li_sids )
+               ch_free( li->li_sids );
+       if ( li->li_mincsn )
+               ber_bvarray_free( li->li_mincsn );
        ldap_pvt_thread_mutex_destroy( &li->li_log_mutex );
        ldap_pvt_thread_mutex_destroy( &li->li_op_rmutex );
        free( li );