[PATCH] faulrep/tests: Fix some memory leaks (Valgrind).
Gijs Vermeulen
gijsvrm at codeweavers.com
Fri Nov 1 11:16:53 CDT 2019
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36404
Signed-off-by: Gijs Vermeulen <gijsvrm at codeweavers.com>
---
dlls/faultrep/tests/faultrep.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/faultrep/tests/faultrep.c b/dlls/faultrep/tests/faultrep.c
index d45c606f1e..d0b30f70cf 100644
--- a/dlls/faultrep/tests/faultrep.c
+++ b/dlls/faultrep/tests/faultrep.c
@@ -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 */
--
2.23.0
More information about the wine-devel
mailing list