From: jinyaoguo Date: Wed, 28 May 2025 01:53:07 +0000 (-0400) Subject: ITS#10343 Fix a memory leak in function slap_uuidstr_from_normalized X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7be631e1a457753629dae6d9ebfab1d79a6c7f39;p=thirdparty%2Fopenldap.git ITS#10343 Fix a memory leak in function slap_uuidstr_from_normalized --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 08a52939d3..7a92f09e3d 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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; }