Commit da5e4f16 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

setupapi: Fix two memory leaks in the test.

parent 42506c94
......@@ -400,6 +400,7 @@ static void test_SetupGetFileCompressionInfo(void)
ok(target_size == sizeof(uncompressed), "got %d\n", target_size);
ok(type == FILE_COMPRESSION_NONE, "got %d, expected FILE_COMPRESSION_NONE\n", type);
MyFree(name);
DeleteFileA(source);
}
......
......@@ -266,6 +266,8 @@ static void test_SetupGetInfInformation(void)
ok(ret == TRUE, "Expected SetupGetInfInformation to succeed\n");
ok(check_info_filename(info, inf_two), "Expected returned filename to be equal\n");
HeapFree(GetProcessHeap(), 0, info);
DeleteFileA(inf_filename);
DeleteFileA(inf_one);
DeleteFileA(inf_two);
......
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