Commit 53e7842e authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

aclui: Fix a leak on error path (Coverity).

parent a8ec44e8
...@@ -120,7 +120,10 @@ static void add_user(struct security_page *page, PSID sid) ...@@ -120,7 +120,10 @@ static void add_user(struct security_page *page, PSID sid)
return; return;
if (!(new_array = realloc(page->users, (page->user_count + 1) * sizeof(*page->users)))) if (!(new_array = realloc(page->users, (page->user_count + 1) * sizeof(*page->users))))
{
free(name);
return; return;
}
page->users = new_array; page->users = new_array;
user = &page->users[page->user_count++]; user = &page->users[page->user_count++];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment