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:
parent
3b6b28bce5
commit
d2e176f3a9
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue