projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f11dc27
)
tests: fix ipmi-kcs-test leak
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Sun, 5 Feb 2017 10:49:58 +0000
(14:49 +0400)
committer
Marc-André Lureau
<marcandre.lureau@redhat.com>
Wed, 1 Mar 2017 07:51:05 +0000
(11:51 +0400)
Spotted by ASAN.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
tests/ipmi-kcs-test.c
patch
|
blob
|
history
diff --git
a/tests/ipmi-kcs-test.c
b/tests/ipmi-kcs-test.c
index 9cf0b34a33510765050cb3868504551d975c5422..178ffc1797346ce5229ec470fcc3796c7de6cae9 100644
(file)
--- 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);