From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDEvq-0007Ku-3J for qemu-devel@nongnu.org; Fri, 01 Aug 2014 11:39:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDEvg-0000KO-9k for qemu-devel@nongnu.org; Fri, 01 Aug 2014 11:39:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:17168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDEvg-0000KA-2W for qemu-devel@nongnu.org; Fri, 01 Aug 2014 11:39:36 -0400 From: John Snow Date: Fri, 1 Aug 2014 11:38:59 -0400 Message-Id: <1406907539-18757-5-git-send-email-jsnow@redhat.com> In-Reply-To: <1406907539-18757-1-git-send-email-jsnow@redhat.com> References: <1406907539-18757-1-git-send-email-jsnow@redhat.com> Subject: [Qemu-devel] [PATCH v3 4/4] qtest/ide: Uninitialize PC allocator List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: marc.mari.barcelo@gmail.com, pbonzini@redhat.com, jsnow@redhat.com, afaerber@suse.de, stefanha@redhat.com 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 --- tests/ide-test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/ide-test.c b/tests/ide-test.c index 4a0d97f..ad32328 100644 --- a/tests/ide-test.c +++ b/tests/ide-test.c @@ -123,6 +123,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(); } -- 1.9.3