aclui: Fix a leak on error path (Coverity).
Signed-off-by: Sven Baars <sbaars@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a8ec44e896
commit
53e7842e64
|
@ -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++];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue