faultrep/tests: Fix some memory leaks (Valgrind).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36404
Signed-off-by: Gijs Vermeulen <gijsvrm@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gijs Vermeulen 2019-11-01 17:16:53 +01:00 committed by Alexandre Julliard
parent 3b6b28bce5
commit d2e176f3a9
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,7 @@ static BOOL is_process_limited(void)
trace("Could not check if the current user is an administrator\n"); trace("Could not check if the current user is an administrator\n");
return FALSE; return FALSE;
} }
FreeSid(Group);
if (!IsInGroup) if (!IsInGroup)
{ {
if (!AllocateAndInitializeSid(&NtAuthority, 2, if (!AllocateAndInitializeSid(&NtAuthority, 2,
@ -75,6 +76,7 @@ static BOOL is_process_limited(void)
trace("Could not check if the current user is a power user\n"); trace("Could not check if the current user is a power user\n");
return FALSE; return FALSE;
} }
FreeSid(Group);
if (!IsInGroup) if (!IsInGroup)
{ {
/* Only administrators and power users can be powerful */ /* Only administrators and power users can be powerful */