Michael Stefaniuc : ntdll/tests: Fix a memory leak (Smatch).

Alexandre Julliard julliard at winehq.org
Mon Sep 17 14:06:31 CDT 2012


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sun Sep 16 15:12:36 2012 +0200

ntdll/tests: Fix a memory leak (Smatch).

---

 dlls/ntdll/tests/info.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/tests/info.c b/dlls/ntdll/tests/info.c
index a50f23b..b376d93 100644
--- a/dlls/ntdll/tests/info.c
+++ b/dlls/ntdll/tests/info.c
@@ -621,6 +621,8 @@ static void test_query_logicalproc(void)
     if(si.dwNumberOfProcessors <= 32)
         ok(proc_no == si.dwNumberOfProcessors, "Incorrect number of logical processors: %d, expected %d\n",
                 proc_no, si.dwNumberOfProcessors);
+
+    HeapFree(GetProcessHeap(), 0, slpi);
 }
 
 static void test_query_processor_power_info(void)




More information about the wine-cvs mailing list