From: John Snow Date: Fri, 1 Aug 2014 15:38:59 +0000 (-0400) Subject: qtest/ide: Uninitialize PC allocator X-Git-Tag: qemu-xen-4.6.0-rc1~211^2~5 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0142f88bff3dd5cb819c9900da1c1e0a4aae9c44;p=qemu-upstream-4.6-testing.git qtest/ide: Uninitialize PC allocator Use the new call to pc_alloc_uninit as a test for the new pathways. The leak checking / assert pathways are not enabled in this patch, leaving this as an option to future test writers. Signed-off-by: John Snow Signed-off-by: Stefan Hajnoczi --- diff --git a/tests/ide-test.c b/tests/ide-test.c index ffce6ed66..b7a97e936 100644 --- a/tests/ide-test.c +++ b/tests/ide-test.c @@ -126,6 +126,8 @@ static void ide_test_start(const char *cmdline_fmt, ...) static void ide_test_quit(void) { + pc_alloc_uninit(guest_malloc); + guest_malloc = NULL; qtest_end(); }