setupapi: Fix two memory leaks in the test.
This commit is contained in:
parent
42506c94f2
commit
da5e4f16d8
|
@ -400,6 +400,7 @@ static void test_SetupGetFileCompressionInfo(void)
|
||||||
ok(target_size == sizeof(uncompressed), "got %d\n", target_size);
|
ok(target_size == sizeof(uncompressed), "got %d\n", target_size);
|
||||||
ok(type == FILE_COMPRESSION_NONE, "got %d, expected FILE_COMPRESSION_NONE\n", type);
|
ok(type == FILE_COMPRESSION_NONE, "got %d, expected FILE_COMPRESSION_NONE\n", type);
|
||||||
|
|
||||||
|
MyFree(name);
|
||||||
DeleteFileA(source);
|
DeleteFileA(source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -266,6 +266,8 @@ static void test_SetupGetInfInformation(void)
|
||||||
ok(ret == TRUE, "Expected SetupGetInfInformation to succeed\n");
|
ok(ret == TRUE, "Expected SetupGetInfInformation to succeed\n");
|
||||||
ok(check_info_filename(info, inf_two), "Expected returned filename to be equal\n");
|
ok(check_info_filename(info, inf_two), "Expected returned filename to be equal\n");
|
||||||
|
|
||||||
|
HeapFree(GetProcessHeap(), 0, info);
|
||||||
|
|
||||||
DeleteFileA(inf_filename);
|
DeleteFileA(inf_filename);
|
||||||
DeleteFileA(inf_one);
|
DeleteFileA(inf_one);
|
||||||
DeleteFileA(inf_two);
|
DeleteFileA(inf_two);
|
||||||
|
|
Loading…
Reference in New Issue