From nobody Sun Feb 8 11:25:54 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=1593209484; cv=none; d=zohomail.com; s=zohoarc; b=M2MOxYO2huG/uLSHDDHyudMG1alD1pGirsggCGqwQdMXvWHdxm9hWiph4kLU3PHE9CpRnQp+hX2+v+MsU6kSYR+aGK3i8fnpPFkgSAvAiAl80AZokBEqx8YYP04Xw+jN4HoKhk8HRy/hd7b42DMx7cDMQkPQrYIYSwODfELEGnM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593209484; 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=PvHrOuKJT0kXxeHes4TMUHKBdi3qXbG8t1qcRnFZ3EY=; b=jR0t8bD60zonFbcDRqADYlCIQsAwAgXpkFzdUbKPLscIyxcTl+HDt1n7uWTqYqYS9UgJ8ZWahLod5VUo/GTIEbrfPkx+RlkJOKjePr80eLf4iczotOvbcpazUA/8EcWu/r4a0Kz2qWdy3ICGoOP+3zCK9ne9j+kQeVLCZIy6Umk= 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 1593209484004488.37184045096114; Fri, 26 Jun 2020 15:11:24 -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-351-6wIcqemtMI2M4amP2ORurA-1; Fri, 26 Jun 2020 18:11:20 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 331E518585C4; Fri, 26 Jun 2020 22:11:15 +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 102E76106A; Fri, 26 Jun 2020 22:11:15 +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 D3ED1104916; Fri, 26 Jun 2020 22:11:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05QMB2sp015676 for ; Fri, 26 Jun 2020 18:11:02 -0400 Received: by smtp.corp.redhat.com (Postfix) id AE1F312F780; Fri, 26 Jun 2020 22:11:02 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 130A812F786 for ; Fri, 26 Jun 2020 22:10:58 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (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 88400800260 for ; Fri, 26 Jun 2020 22:10:58 +0000 (UTC) Received: from mail-qv1-f65.google.com (mail-qv1-f65.google.com [209.85.219.65]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-35-GibghStyO-upPimQBIfO_g-1; Fri, 26 Jun 2020 18:10:56 -0400 Received: by mail-qv1-f65.google.com with SMTP id dp10so5172256qvb.10 for ; Fri, 26 Jun 2020 15:10:56 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 15:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593209482; 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=PvHrOuKJT0kXxeHes4TMUHKBdi3qXbG8t1qcRnFZ3EY=; b=U6aMFZ7O1h5k6YIjvIIB2U7WUyZzp9ilBfHlFi/zEmVc6J4Teg/xMEWOwvh4jMM44Q0tag mZFQ9bwtf3iXLh4QIrVhQ6eNisIlSBPNIclJqezI+HZfVLAO0Pk7DkVAbfjuj9nZA9V/vg y2iJv46EAj6I7aB9eG7PJv3Ts+e9i88= X-MC-Unique: 6wIcqemtMI2M4amP2ORurA-1 X-MC-Unique: GibghStyO-upPimQBIfO_g-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=PvHrOuKJT0kXxeHes4TMUHKBdi3qXbG8t1qcRnFZ3EY=; b=QeiGUP4VbZLa/GegTONEmE94pmmdL8nMj2AhzQ457yWoA9gNKEhINrMeRGUVcaFIlB 8jpPAVONBuvNYnn7x0DUser9i+SwX0NeQRcoGZ2hDOLVtJ82fx5c0J5Hcqx3fr+PjgAZ wg+o76pW+nnMykE+vIREpQivMqrJ5atMgVNrAPNSitKl3c9XruQqoWucg8W/CPo+E5Sm qO/hxDfc2GGXHOPPMXmL7AW0kPxcRtSLcyi7YyFirV7CVplpyI9Q3ekCj9mE1tWFR0jd ipGug28H7mcBl39HgcmPjmRM5R3skutyC2Ac41Fdu7uDhswabuDt1ogXAKJhD1W2ivT0 FH7A== X-Gm-Message-State: AOAM533dO5VM721rvr3K9QvdxJ9kurBLF+gwDh93TN6+Ve7Gb/U0lby6 C3E/R1hP3L6WdhAx9zJGtFiuTcyz X-Google-Smtp-Source: ABdhPJwe5O6eqT0BAmCT9HAmyX0zpN5/3xw6GVPH+OkEh0j3Ki4ajp1HE7dJWDFCxx4NlBUqn/R7+A== X-Received: by 2002:a05:6214:8f4:: with SMTP id dr20mr5000685qvb.228.1593209455872; Fri, 26 Jun 2020 15:10:55 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 2/7] virhostcpu.c: use g_autoptr in virHostCPUGetMap() Date: Fri, 26 Jun 2020 19:10:39 -0300 Message-Id: <20200626221044.631749-3-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.79 on 10.11.54.5 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.12 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/util/virhostcpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util/virhostcpu.c b/src/util/virhostcpu.c index 39bbcf8ca8..3023bca831 100644 --- a/src/util/virhostcpu.c +++ b/src/util/virhostcpu.c @@ -1089,7 +1089,7 @@ virHostCPUGetMap(unsigned char **cpumap, unsigned int *online, unsigned int flags) { - virBitmapPtr cpus =3D NULL; + g_autoptr(virBitmap) cpus =3D NULL; int ret =3D -1; int dummy; =20 @@ -1111,7 +1111,6 @@ virHostCPUGetMap(unsigned char **cpumap, cleanup: if (ret < 0 && cpumap) VIR_FREE(*cpumap); - virBitmapFree(cpus); return ret; } =20 --=20 2.26.2