From 53e7842e64ec03c4efa547e0d6cd14be50bbb797 Mon Sep 17 00:00:00 2001 From: Sven Baars Date: Sat, 24 Apr 2021 13:24:04 +0200 Subject: [PATCH] aclui: Fix a leak on error path (Coverity). Signed-off-by: Sven Baars Signed-off-by: Alexandre Julliard --- dlls/aclui/aclui_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/aclui/aclui_main.c b/dlls/aclui/aclui_main.c index 43171d70410..8fd3db4d58c 100644 --- a/dlls/aclui/aclui_main.c +++ b/dlls/aclui/aclui_main.c @@ -120,7 +120,10 @@ static void add_user(struct security_page *page, PSID sid) return; if (!(new_array = realloc(page->users, (page->user_count + 1) * sizeof(*page->users)))) + { + free(name); return; + } page->users = new_array; user = &page->users[page->user_count++];