aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-02-05 14:49:58 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2017-03-01 11:51:05 +0400
commit3f5f5d04cdc8f8f2212fa9d391020df9c9922040 (patch)
tree6358bf37003b4818ba608adbe793aecc8cd8a10f
parentf11dc27bcc031b9dc90ffd82c503b55f83c246ca (diff)
tests: fix ipmi-kcs-test leak
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/ipmi-kcs-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ipmi-kcs-test.c b/tests/ipmi-kcs-test.c
index 9cf0b34a33..178ffc1797 100644
--- a/tests/ipmi-kcs-test.c
+++ b/tests/ipmi-kcs-test.c
@@ -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);