]> 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>
Mon, 8 Sep 2025 22:07:50 +0000 (22:07 +0000)
servers/slapd/syncrepl.c

index 08a52939d3638392f13d6b5502130e81ef536019..7a92f09e3d6be677ea7677ab3886a3b405063218 100644 (file)
@@ -5980,7 +5980,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;
        }