Commit 3d3529d6 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

advapi32/tests: Free memory after use.

parent e60a52e7
...@@ -864,6 +864,7 @@ static void test_token_attr(void) ...@@ -864,6 +864,7 @@ static void test_token_attr(void)
LookupPrivilegeName(NULL, &Privileges->Privileges[i].Luid, Name, &NameLen); LookupPrivilegeName(NULL, &Privileges->Privileges[i].Luid, Name, &NameLen);
trace("\t%s, 0x%x\n", Name, Privileges->Privileges[i].Attributes); trace("\t%s, 0x%x\n", Name, Privileges->Privileges[i].Attributes);
} }
HeapFree(GetProcessHeap(), 0, Privileges);
} }
typedef union _MAX_SID typedef union _MAX_SID
...@@ -1309,6 +1310,9 @@ static void test_LookupAccountName(void) ...@@ -1309,6 +1310,9 @@ static void test_LookupAccountName(void)
ok(sid_size == 0, "Expected 0, got %d\n", sid_size); ok(sid_size == 0, "Expected 0, got %d\n", sid_size);
ok(domain_size == 0, "Expected 0, got %d\n", domain_size); ok(domain_size == 0, "Expected 0, got %d\n", domain_size);
} }
HeapFree(GetProcessHeap(), 0, psid);
HeapFree(GetProcessHeap(), 0, domain);
} }
START_TEST(security) START_TEST(security)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment