[advapi32/test 2/2] Free memory after use

Paul Vriens paul.vriens.wine at gmail.com
Mon Dec 4 15:05:01 CST 2006


Hi,

Another free. Please apply after the first one for security.c

Changelog
  Free memory after use

Cheers,

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

diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index 7711f97..6ff3a0f 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -864,6 +864,7 @@ static void test_token_attr(void)
         LookupPrivilegeName(NULL, &Privileges->Privileges[i].Luid, Name, &NameLen);
         trace("\t%s, 0x%x\n", Name, Privileges->Privileges[i].Attributes);
     }
+    HeapFree(GetProcessHeap(), 0, Privileges);
 }
 
 typedef union _MAX_SID
-- 
1.4.4.1




More information about the wine-patches mailing list