Commit d2e176f3 authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

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

parent 3b6b28bc
......@@ -64,6 +64,7 @@ static BOOL is_process_limited(void)
trace("Could not check if the current user is an administrator\n");
return FALSE;
}
FreeSid(Group);
if (!IsInGroup)
{
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");
return FALSE;
}
FreeSid(Group);
if (!IsInGroup)
{
/* Only administrators and power users can be powerful */
......
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