qtest/ide: Fix small memory leak
For libqos debugging purposes, it's nice to be able to assert that tests and associated libraries have no memory leaks. To that end, free up the trivial cmdline leak. The remaining leaks caused by pc_alloc_init are fixed instead by my first-fit pc_alloc implementation already on the qemu-devel mailing list. Signed-off-by: John Snow <jsnow@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
6ce7100e7f
commit
e42de189e8
@ -120,6 +120,8 @@ static void ide_test_start(const char *cmdline_fmt, ...)
|
|||||||
qtest_start(cmdline);
|
qtest_start(cmdline);
|
||||||
qtest_irq_intercept_in(global_qtest, "ioapic");
|
qtest_irq_intercept_in(global_qtest, "ioapic");
|
||||||
guest_malloc = pc_alloc_init();
|
guest_malloc = pc_alloc_init();
|
||||||
|
|
||||||
|
g_free(cmdline);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ide_test_quit(void)
|
static void ide_test_quit(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user