From nobody Mon Feb 9 02:28:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1573541387; cv=none; d=zoho.com; s=zohoarc; b=nBynITOe+DSPNocl7UrWunvJlRvxGuLUE42NqMlrg0F1yDGIKRBMCmleLMgLchM3yFEjDo7SzP0R6W3iZYc2a8DeTnK5UaiEMPCFd7RMIdMaF6rIQTBy/pnko0buOga55zRuCKfwHtthAZk0H2G3VxUsqkVPAS3e01Df/DILarQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573541387; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=nrILqC3AU3m5t+SirPvHklNkfBjrHQ8H9rbBOdAsI5E=; b=mfx/yBYOBz6tyqeCjr/9ibvzBQlf5z4qCgvflspOLSmFVcKxS2l3Mr5R1AFhfO1vA/LJ/L1vpmRRUXuGMJ6SwY27mzM6H6j7NyEQl86jxwWGY4YBQlwll0Xi/cZlQHefBOTayC7q8pFsxOh9PaOLYuYhR3FukYHKzQ++Lm0JWf4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1573541387604407.89209596338003; Mon, 11 Nov 2019 22:49:47 -0800 (PST) Received: from localhost ([::1]:59512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUPzm-0001p3-3p for importer@patchew.org; Tue, 12 Nov 2019 01:49:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58127) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUPty-0005VB-8v for qemu-devel@nongnu.org; Tue, 12 Nov 2019 01:43:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUPtx-0000US-AC for qemu-devel@nongnu.org; Tue, 12 Nov 2019 01:43:46 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:36273 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iUPtx-0000Ss-6W for qemu-devel@nongnu.org; Tue, 12 Nov 2019 01:43:45 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-300-YYkXLsASOD6G6vK8J8B_OA-1; Tue, 12 Nov 2019 01:43:43 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 90DA18017E0; Tue, 12 Nov 2019 06:43:42 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-116-124.ams2.redhat.com [10.36.116.124]) by smtp.corp.redhat.com (Postfix) with ESMTP id 854375DF2A; Tue, 12 Nov 2019 06:43:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573541024; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nrILqC3AU3m5t+SirPvHklNkfBjrHQ8H9rbBOdAsI5E=; b=Nuzg6hxvuPJarOq7+p6xpBfOrjQeMeasfyRaahRzwOa20u2TS0f2Xp+jAdp0I66E9ihEF1 CpDs+NLzuw8FWZWV2iUFDqN/GkuVDt6yLwu85ecOoKWXNlWlBEuRhMwb1LSZeZ9PLy8DmN CVlixwTdfI2ZH3MDhdeKoICBSGXaNLw= From: Thomas Huth To: qemu-devel@nongnu.org, Peter Maydell Subject: [PULL 2/6] cpu-plug-test: fix leaks Date: Tue, 12 Nov 2019 07:43:28 +0100 Message-Id: <20191112064332.5074-3-thuth@redhat.com> In-Reply-To: <20191112064332.5074-1-thuth@redhat.com> References: <20191112064332.5074-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: YYkXLsASOD6G6vK8J8B_OA-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 205.139.110.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" From: Marc-Andr=C3=A9 Lureau Spotted by ASAN. Signed-off-by: Marc-Andr=C3=A9 Lureau Message-Id: <20191107192731.17330-4-marcandre.lureau@redhat.com> Reviewed-by: Thomas Huth Fixes: 021a007efc3 ("cpu-plug-test: fix device_add for pc/q35 machines") Signed-off-by: Thomas Huth --- tests/cpu-plug-test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/cpu-plug-test.c b/tests/cpu-plug-test.c index 058cef5ac1..30e514bbfb 100644 --- a/tests/cpu-plug-test.c +++ b/tests/cpu-plug-test.c @@ -99,6 +99,7 @@ static void test_plug_with_device_add(gconstpointer data) =20 cpu =3D qobject_to(QDict, e); if (qdict_haskey(cpu, "qom-path")) { + qobject_unref(e); continue; } =20 @@ -107,6 +108,7 @@ static void test_plug_with_device_add(gconstpointer dat= a) =20 qtest_qmp_device_add_qdict(qts, td->device_model, props); hotplugged++; + qobject_unref(e); } =20 /* make sure that there were hotplugged CPUs */ --=20 2.23.0