setupapi: Fix two memory leaks in the test.

This commit is contained in:
Hans Leidekker 2008-07-19 19:54:23 +02:00 committed by Alexandre Julliard
parent 42506c94f2
commit da5e4f16d8
2 changed files with 3 additions and 0 deletions

View File

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

View File

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