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

Alexandre Julliard julliard at winehq.org
Fri Nov 1 15:37:48 CDT 2019


Module: wine
Branch: master
Commit: d2e176f3a95f7eb906df623c01abfb8fca119dea
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d2e176f3a95f7eb906df623c01abfb8fca119dea

Author: Gijs Vermeulen <gijsvrm at codeweavers.com>
Date:   Fri Nov  1 17:16:53 2019 +0100

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

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36404
Signed-off-by: Gijs Vermeulen <gijsvrm at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 */




More information about the wine-cvs mailing list