Commit f75e4bf0 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

ntdll/tests: Free memory after use.

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