kernel32: Fix two little leaks in heap test.
Found by valgrind.
This commit is contained in:
parent
a15e6cbb1a
commit
4696a53679
|
@ -72,6 +72,7 @@ static void test_heap(void)
|
|||
/* Heap*() functions */
|
||||
mem = HeapAlloc(GetProcessHeap(), 0, 0);
|
||||
ok(mem != NULL, "memory not allocated for size 0\n");
|
||||
HeapFree(GetProcessHeap(), 0, mem);
|
||||
|
||||
mem = HeapReAlloc(GetProcessHeap(), 0, NULL, 10);
|
||||
ok(mem == NULL, "memory allocated by HeapReAlloc\n");
|
||||
|
@ -249,6 +250,8 @@ static void test_heap(void)
|
|||
"Expected ERROR_INVALID_HANDLE or ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
|
||||
}
|
||||
|
||||
GlobalFree(gbl);
|
||||
|
||||
/* ####################################### */
|
||||
/* Local*() functions */
|
||||
gbl = LocalAlloc(LMEM_MOVEABLE, 0);
|
||||
|
|
Loading…
Reference in New Issue