advapi32: fix a memory leak in test_process_security

Austin English austinenglish at gmail.com
Wed Jul 9 13:41:34 CDT 2014


==11413== 12 bytes in 1 blocks are definitely lost in loss record 17 of 245
==11413==    at 0x7BC4C6DF: notify_alloc (heap.c:255)
==11413==    by 0x7BC50F23: RtlAllocateHeap (heap.c:1716)
==11413==    by 0x7BC78BB1: RtlAllocateAndInitializeSid (sec.c:156)
==11413==    by 0x546F2A3: AllocateAndInitializeSid (security.c:916)
==11413==    by 0x4E94BB6: test_process_security (security.c:2556)
==11413==    by 0x4EA5565: func_security (security.c:5493)
==11413==    by 0x4EB501A: run_test (test.h:584)
==11413==    by 0x4EB5409: main (test.h:654)
==11413==

introduced in 0a4c7860f82074f7c81d6378075e63848b00b98e

-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140709/bef13926/attachment.html>
-------------- next part --------------
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index b1dc3fe..b44496a 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -2665,6 +2665,7 @@ static void test_process_security(void)
                           STANDARD_RIGHTS_ALL | SPECIFIC_RIGHTS_ALL );
     winetest_wait_child_process( info.hProcess );
 
+    FreeSid(EveryoneSid);
     CloseHandle( info.hProcess );
     CloseHandle( info.hThread );
     CloseHandle( event );


More information about the wine-patches mailing list