mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 03:13:44 +08:00
tests: fix endianness-test leaks
Spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
072bdb07c5
commit
f3f8e81150
@ -295,14 +295,17 @@ int main(int argc, char **argv)
|
|||||||
path = g_strdup_printf("endianness/%s",
|
path = g_strdup_printf("endianness/%s",
|
||||||
test_cases[i].machine);
|
test_cases[i].machine);
|
||||||
qtest_add_data_func(path, &test_cases[i], test_endianness);
|
qtest_add_data_func(path, &test_cases[i], test_endianness);
|
||||||
|
g_free(path);
|
||||||
|
|
||||||
path = g_strdup_printf("endianness/split/%s",
|
path = g_strdup_printf("endianness/split/%s",
|
||||||
test_cases[i].machine);
|
test_cases[i].machine);
|
||||||
qtest_add_data_func(path, &test_cases[i], test_endianness_split);
|
qtest_add_data_func(path, &test_cases[i], test_endianness_split);
|
||||||
|
g_free(path);
|
||||||
|
|
||||||
path = g_strdup_printf("endianness/combine/%s",
|
path = g_strdup_printf("endianness/combine/%s",
|
||||||
test_cases[i].machine);
|
test_cases[i].machine);
|
||||||
qtest_add_data_func(path, &test_cases[i], test_endianness_combine);
|
qtest_add_data_func(path, &test_cases[i], test_endianness_combine);
|
||||||
|
g_free(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
return g_test_run();
|
return g_test_run();
|
||||||
|
Loading…
Reference in New Issue
Block a user