]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10343 Fix a memory leak in function slap_uuidstr_from_normalized
authorjinyaoguo <guo846@purdue.edu>
Wed, 28 May 2025 01:53:07 +0000 (21:53 -0400)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 20 Jun 2025 14:52:19 +0000 (14:52 +0000)
servers/slapd/syncrepl.c

index afc6a593dabd8155a0eb192a57bb39b1ec27aecd..9deac37a5fa0a6b9159e083353c00c8b0ebb739a 100644 (file)
@@ -6169,7 +6169,7 @@ slap_uuidstr_from_normalized(
        new->bv_len = 36;
 
        if ( ( new->bv_val = slap_sl_malloc( new->bv_len + 1, ctx ) ) == NULL ) {
-               rc = 1;
+               rc = -1;
                goto done;
        }