]> Git Repo - qemu.git/commitdiff
tests: fix ipmi-kcs-test leak
authorMarc-André Lureau <[email protected]>
Sun, 5 Feb 2017 10:49:58 +0000 (14:49 +0400)
committerMarc-André Lureau <[email protected]>
Wed, 1 Mar 2017 07:51:05 +0000 (11:51 +0400)
Spotted by ASAN.

Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
tests/ipmi-kcs-test.c

index 9cf0b34a33510765050cb3868504551d975c5422..178ffc1797346ce5229ec470fcc3796c7de6cae9 100644 (file)
@@ -279,6 +279,7 @@ int main(int argc, char **argv)
     cmdline = g_strdup_printf("-device ipmi-bmc-sim,id=bmc0"
                               " -device isa-ipmi-kcs,bmc=bmc0");
     qtest_start(cmdline);
+    g_free(cmdline);
     qtest_irq_intercept_in(global_qtest, "ioapic");
     qtest_add_func("/ipmi/local/kcs_base", test_kcs_base);
     qtest_add_func("/ipmi/local/kcs_abort", test_kcs_abort);
This page took 0.029108 seconds and 4 git commands to generate.