From patchwork Wed Jul 30 22:28:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Snow X-Patchwork-Id: 375056 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E825E14008B for ; Thu, 31 Jul 2014 08:31:10 +1000 (EST) Received: from localhost ([::1]:53420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCcOq-00040m-Qk for incoming@patchwork.ozlabs.org; Wed, 30 Jul 2014 18:31:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCcMh-0000Jl-U4 for qemu-devel@nongnu.org; Wed, 30 Jul 2014 18:29:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCcMZ-0003UU-IM for qemu-devel@nongnu.org; Wed, 30 Jul 2014 18:28:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCcMZ-0003UM-AZ for qemu-devel@nongnu.org; Wed, 30 Jul 2014 18:28:47 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6UMSjEh005633 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Jul 2014 18:28:45 -0400 Received: from dhcp-17-12.bos.redhat.com ([10.18.17.12]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6UMSfit005330; Wed, 30 Jul 2014 18:28:45 -0400 From: John Snow To: qemu-devel@nongnu.org Date: Wed, 30 Jul 2014 18:28:29 -0400 Message-Id: <1406759309-13742-5-git-send-email-jsnow@redhat.com> In-Reply-To: <1406759309-13742-1-git-send-email-jsnow@redhat.com> References: <1406759309-13742-1-git-send-email-jsnow@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: marc.mari.barcelo@gmail.com, pbonzini@redhat.com, jsnow@redhat.com, stefanha@redhat.com Subject: [Qemu-devel] [PATCH 4/4] qtest/ide: Uninitialize PC allocator X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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(); }