diff options
| author | Marc-André Lureau | 2017-01-27 10:01:39 +0100 |
|---|---|---|
| committer | Marc-André Lureau | 2017-02-28 21:09:28 +0100 |
| commit | f3f8e81150953f2829d39eef9f91f02a38a0c340 (patch) | |
| tree | 12f43cc0620bb452728bcddfc06ee97a710ffcfa | |
| parent | tests: fix ptimer leaks (diff) | |
| download | qemu-f3f8e81150953f2829d39eef9f91f02a38a0c340.tar.gz qemu-f3f8e81150953f2829d39eef9f91f02a38a0c340.tar.xz qemu-f3f8e81150953f2829d39eef9f91f02a38a0c340.zip | |
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>
| -rw-r--r-- | tests/endianness-test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/endianness-test.c b/tests/endianness-test.c index cf8d41b7b4..ed0bf52019 100644 --- a/tests/endianness-test.c +++ b/tests/endianness-test.c @@ -295,14 +295,17 @@ int main(int argc, char **argv) path = g_strdup_printf("endianness/%s", test_cases[i].machine); qtest_add_data_func(path, &test_cases[i], test_endianness); + g_free(path); path = g_strdup_printf("endianness/split/%s", test_cases[i].machine); qtest_add_data_func(path, &test_cases[i], test_endianness_split); + g_free(path); path = g_strdup_printf("endianness/combine/%s", test_cases[i].machine); qtest_add_data_func(path, &test_cases[i], test_endianness_combine); + g_free(path); } return g_test_run(); |
