aboutsummaryrefslogtreecommitdiff
path: root/tests/ipmi-bt-test.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-02-05 14:50:35 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2017-03-01 11:51:05 +0400
commit2607b660e9b9edb11384520249b9b683e1e8c8ab (patch)
tree8307d53fa4f0013cf00cfed60f5b3ba9bffd122c /tests/ipmi-bt-test.c
parent3f5f5d04cdc8f8f2212fa9d391020df9c9922040 (diff)
downloadqemu-2607b660e9b9edb11384520249b9b683e1e8c8ab.zip
qemu-2607b660e9b9edb11384520249b9b683e1e8c8ab.tar.gz
qemu-2607b660e9b9edb11384520249b9b683e1e8c8ab.tar.bz2
tests: fix ipmi-bt-test leak
Spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'tests/ipmi-bt-test.c')
-rw-r--r--tests/ipmi-bt-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ipmi-bt-test.c b/tests/ipmi-bt-test.c
index e84dd68..7e21a9b 100644
--- a/tests/ipmi-bt-test.c
+++ b/tests/ipmi-bt-test.c
@@ -420,6 +420,7 @@ int main(int argc, char **argv)
" -device ipmi-bmc-extern,chardev=ipmi0,id=bmc0"
" -device isa-ipmi-bt,bmc=bmc0", emu_port);
qtest_start(cmdline);
+ g_free(cmdline);
qtest_irq_intercept_in(global_qtest, "ioapic");
qtest_add_func("/ipmi/extern/connect", test_connect);
qtest_add_func("/ipmi/extern/bt_base", test_bt_base);