diff options
author | John Snow <jsnow@redhat.com> | 2014-08-04 17:11:25 -0400 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-08-15 18:03:13 +0100 |
commit | e42de189e8eaf3dc93f22e88beca4f5b62ef336c (patch) | |
tree | 45326ef4d44b4e8cdacec58c2edf73abe4e909c4 /tests/ide-test.c | |
parent | 6ce7100e7ff986c1f214f6bccca89dfd7256d8ec (diff) |
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>
Diffstat (limited to 'tests/ide-test.c')
-rw-r--r-- | tests/ide-test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ide-test.c b/tests/ide-test.c index e2b4efcc3f..a77a037d1e 100644 --- a/tests/ide-test.c +++ b/tests/ide-test.c @@ -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) |