X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=rostests%2Fwinetests%2Flz32%2Flzexpand_main.c;h=3e46fb0a47c40ff3dcb5b4e1defcdda33faef4ce;hp=91fd6873e3f3248a7ab9c3a25a504f983fb2a47c;hb=ca97d9f41d854ecdead849dee00b49f0fc535962;hpb=f46012e33b798b8593a8f62cd0d757cf5339aea6 diff --git a/rostests/winetests/lz32/lzexpand_main.c b/rostests/winetests/lz32/lzexpand_main.c index 91fd6873e3f..3e46fb0a47c 100644 --- a/rostests/winetests/lz32/lzexpand_main.c +++ b/rostests/winetests/lz32/lzexpand_main.c @@ -881,10 +881,10 @@ static void test_LZOpenFileW(void) START_TEST(lzexpand_main) { - buf = malloc(uncompressed_data_size * 2); + buf = HeapAlloc(GetProcessHeap(), 0, uncompressed_data_size * 2); test_LZOpenFileA(); test_LZOpenFileW(); test_LZRead(); test_LZCopy(); - free(buf); + HeapFree(GetProcessHeap(), 0, buf); }