kernel32: Fix two little leaks in heap test.

Found by valgrind.
This commit is contained in:
Dan Kegel 2009-10-21 05:57:26 -07:00 committed by Alexandre Julliard
parent a15e6cbb1a
commit 4696a53679
1 changed files with 3 additions and 0 deletions

View File

@ -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);