]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10482 slapo-accesslog: do not leak entryUUID
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 31 Mar 2026 16:18:47 +0000 (17:18 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 10 Apr 2026 03:15:42 +0000 (03:15 +0000)
servers/slapd/overlays/accesslog.c

index 210cc51033a92c337c6c97ed6aa41d00426b1abc..a433dd47c6459ae44e4649e733489dd3bc4b4506 100644 (file)
@@ -2170,6 +2170,10 @@ done:
        return SLAP_CB_CONTINUE;
 
 skip:
+       if ( !BER_BVISNULL( &li->li_uuid ) ) {
+               ber_memfree( li->li_uuid.bv_val );
+               BER_BVZERO( &li->li_uuid );
+       }
        if ( lo->mask & LOG_OP_WRITES ) {
                /* We haven't transitioned to li_log_mutex yet */
                ldap_pvt_thread_mutex_unlock( &li->li_op_rmutex );