From nobody Sun Feb 8 15:29:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1593209473; cv=none; d=zohomail.com; s=zohoarc; b=E3WQ/SZPEessqRubVm5WzxG79pU7GkElvMFQMpYHnEE7r590gr1IkWpge3iJGkzQc4ZMX/l0AnV5yOHawbPNCldYrCVasO3Z8Sn6ODudXR8ee3e94zdiCIQyEBc48WCjZKRwXswFvr2I+nw1qR4O6e6g4xs5LYUbaEygWQWJq8s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593209473; 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=7vHOg663Yq/QEVQ2XtqRKl0EtY+XfEM9yG1SFF1tMMA=; b=jWBeA0CDTVly67YQqqIerJTHV6/cj1v69VOrLe18dY7SJtKSGnrOkvVWI+BUCJMNZ5Bnrptul9UFquf0ZGwcH3y/0yny75DG3wTAX5DQQojnJc8Xsb64nzoG9a5KBsWHn0FrCrBTWicyn2P1SkT5IbnU0VMrZRHxEEDl2EAL0Is= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1593209473589803.7175800599475; Fri, 26 Jun 2020 15:11:13 -0700 (PDT) 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-159-iZWOi3NVPlyzdT4qn0KfSg-1; Fri, 26 Jun 2020 18:11:10 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 51AE710059A2; Fri, 26 Jun 2020 22:11:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 31C518FF97; Fri, 26 Jun 2020 22:11:04 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id F2A31875BF; Fri, 26 Jun 2020 22:11:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05QMB26p015677 for ; Fri, 26 Jun 2020 18:11:02 -0400 Received: by smtp.corp.redhat.com (Postfix) id A86D81065681; Fri, 26 Jun 2020 22:11:02 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0967D104949D for ; Fri, 26 Jun 2020 22:10:57 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4A8ED858F03 for ; Fri, 26 Jun 2020 22:10:57 +0000 (UTC) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-229-b2M4GUWFPBKqARw2rGPBFA-1; Fri, 26 Jun 2020 18:10:55 -0400 Received: by mail-qk1-f175.google.com with SMTP id e11so10262230qkm.3 for ; Fri, 26 Jun 2020 15:10:54 -0700 (PDT) Received: from rekt.ibmuc.com ([2804:431:c7c7:4951:b792:3278:7364:91bd]) by smtp.gmail.com with ESMTPSA id v10sm7159090qtk.14.2020.06.26.15.10.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 15:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593209472; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=7vHOg663Yq/QEVQ2XtqRKl0EtY+XfEM9yG1SFF1tMMA=; b=f31/ewwnEQIX6WNjTsCVonXwSb4yCpZ4A2PG+7rA1BNzR0O6XwERdxaGWMYT+62uWaD3J9 WwxA8X3zeMybHzO+r4GJde4Kg6w+ueKsuNV8qiswP50cKuTPUwMD6NPAYncnMcyVJLGdY1 MwgrcqLL8G0LnQIIV8v4XRXqxcAzGBc= X-MC-Unique: iZWOi3NVPlyzdT4qn0KfSg-1 X-MC-Unique: b2M4GUWFPBKqARw2rGPBFA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7vHOg663Yq/QEVQ2XtqRKl0EtY+XfEM9yG1SFF1tMMA=; b=XKBjAkOpjuFrrhEaDFaJ6gnQqm/Jv3/C2Xl7K2f5pxBD+j0rGvvqL+/KZ9x/p7riC8 3uFpxj87QZG2ONWn5IZnRiBS1W04HNIS5tW7IuBgIwFPxHiT9SyrAbZl0a02H3LOSj0T diRgAV9MUHewX28IM6JNhI9zQQuK5vGt43bFkDDyQvHicV2x6xQdXS5TiJKxpRJBdlIX zD0OlijQbocbr6iQ7BACNgHjuY2vbRh9UDM4RXFgF0II8KaEeX7NxPv97t6loPEvcJRI MNFERkcf/A3D1AJpAQdNGl8LxNfPr6W72PLHYsRA4UBAmIypE04+9IuJeOX4cB+OXaU7 PkGg== X-Gm-Message-State: AOAM532oQlM0DxzdwPhsrK1B4HJkjOH0NJN21N/ZGErHxORRsex85z3G snUAKOe40KBcAAu56WlSEwaPb+6L X-Google-Smtp-Source: ABdhPJzm/DUrSF1/123o+JSxxlcKEad1kEbK2ofCN/ID0d4PxmNxLGw4DErsxOcZ9yMFcJkPyIIbrA== X-Received: by 2002:a37:a444:: with SMTP id n65mr4792841qke.289.1593209454359; Fri, 26 Jun 2020 15:10:54 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 1/7] qemu_driver.c: use g_autoptr in qemuDomainGetEmulatorPinInfo() Date: Fri, 26 Jun 2020 19:10:38 -0300 Message-Id: <20200626221044.631749-2-danielhb413@gmail.com> In-Reply-To: <20200626221044.631749-1-danielhb413@gmail.com> References: <20200626221044.631749-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_driver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index a5b38b3d24..d486ce5278 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -5427,7 +5427,7 @@ qemuDomainGetEmulatorPinInfo(virDomainPtr dom, int ret =3D -1; int hostcpus; virBitmapPtr cpumask =3D NULL; - virBitmapPtr bitmap =3D NULL; + g_autoptr(virBitmap) bitmap =3D NULL; virBitmapPtr autoCpuset =3D NULL; =20 virCheckFlags(VIR_DOMAIN_AFFECT_LIVE | @@ -5468,7 +5468,6 @@ qemuDomainGetEmulatorPinInfo(virDomainPtr dom, =20 cleanup: virDomainObjEndAPI(&vm); - virBitmapFree(bitmap); return ret; } =20 --=20 2.26.2