ntdll/tests: Free memory after use.

This commit is contained in:
Paul Vriens 2008-06-10 12:09:38 +02:00 committed by Alexandre Julliard
parent 5bc7b784cb
commit f75e4bf0de
1 changed files with 6 additions and 0 deletions

View File

@ -225,6 +225,9 @@ static DWORD WINAPI test_ports_client(LPVOID arg)
ok(!lstrcmp((LPSTR)out->Data, REPLY), "Expected %s, got %s\n", REPLY, out->Data);
ok(out->MessageType == LPC_REPLY, "Expected LPC_REPLY, got %d\n", out->MessageType);
HeapFree(GetProcessHeap(), 0, out);
HeapFree(GetProcessHeap(), 0, LpcMessage);
return 0;
}
@ -290,6 +293,7 @@ static void test_ports_server(void)
case LPC_CLIENT_DIED:
ok(done, "Expected LPC request to be completed!\n");
HeapFree(GetProcessHeap(), 0, LpcMessage);
return;
default:
@ -297,6 +301,8 @@ static void test_ports_server(void)
break;
}
}
HeapFree(GetProcessHeap(), 0, LpcMessage);
}
START_TEST(port)