mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-11 19:39:26 -07:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -120,6 +120,8 @@ static void ide_test_start(const char *cmdline_fmt, ...)
|
|||
qtest_start(cmdline);
|
||||
qtest_irq_intercept_in(global_qtest, "ioapic");
|
||||
guest_malloc = pc_alloc_init();
|
||||
|
||||
g_free(cmdline);
|
||||
}
|
||||
|
||||
static void ide_test_quit(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue