ITS#10343 Fix a memory leak in function slap_uuidstr_from_normalized

This commit is contained in:
jinyaoguo 2025-05-27 21:53:07 -04:00 committed by Quanah Gibson-Mount
parent f00339df9e
commit ddea2bc669

View file

@ -6169,7 +6169,7 @@ slap_uuidstr_from_normalized(
new->bv_len = 36; new->bv_len = 36;
if ( ( new->bv_val = slap_sl_malloc( new->bv_len + 1, ctx ) ) == NULL ) { if ( ( new->bv_val = slap_sl_malloc( new->bv_len + 1, ctx ) ) == NULL ) {
rc = 1; rc = -1;
goto done; goto done;
} }