advapi32 tests: fix memory leak (found by Smatch).

Lionel Debroux lionel_debroux at yahoo.fr
Sat Oct 20 14:17:17 CDT 2007


---
 dlls/advapi32/tests/service.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index e932c64..4b7bd31 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -840,6 +840,7 @@ static void test_sequence(void)
     Sleep(1000);
 
     CloseServiceHandle(scm_handle);
+    HeapFree(GetProcessHeap(), 0, config);
 }
 
 static void test_refcount(void)
-- 
1.5.3.2


--------------030009030209090705030406--



More information about the wine-patches mailing list