From nobody Sat Feb 7 05:48:44 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1637677234; cv=none; d=zohomail.com; s=zohoarc; b=RH1d/meHLqNTZMBLgttPpHoAdTJ9b4ZnqYAf98pwXC24f77m92umBlWpCHy6NcituHY8aWPcjfWBT+YePUJZ174J4MoqY4ncgZ/aVYP9YwePtf9H2nkqMzFiIl9BoDu9is0Aa2g+EzUKzgqL3ISRFJtm9Q8AdxZ/CEicDSkqYNk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637677234; h=Content-Type:Content-Transfer-Encoding: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=RANY34BsiGpUtsE6QICIXlweIMfaGzTS8qxD0rPai3M=; b=chpaIAdYMSCpJT++RfRwgSVaOrpEcFejh4iIMpN1PhW1wxSb0HmWZncmHzhG6RVBITuf+CGhyOc3+XbI59kbwA3neyFvom3nEffdaTb8yEZFlgh6BWVKhPFMLrHk6f8oSkMoAy5QLdM4BpiFMYS44u0OZiQJ9Er2Onv2j77n9sY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1637677234554349.83559202137076; Tue, 23 Nov 2021 06:20:34 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-566-_D3hFqClOKuYkbt1zNa3PQ-1; Tue, 23 Nov 2021 09:20:29 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D4C1E8066EC; Tue, 23 Nov 2021 14:20:23 +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 AEA02108DF; Tue, 23 Nov 2021 14:20:23 +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 1392B4E58E; Tue, 23 Nov 2021 14:20:22 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1ANEKKaY032115 for ; Tue, 23 Nov 2021 09:20:20 -0500 Received: by smtp.corp.redhat.com (Postfix) id C6101101E5BF; Tue, 23 Nov 2021 14:20:20 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.43.2.72]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E4E3101E59D for ; Tue, 23 Nov 2021 14:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637677233; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=RANY34BsiGpUtsE6QICIXlweIMfaGzTS8qxD0rPai3M=; b=POAMJHFf0KXQPlssF9tnktzQDVnZHSRFfk+NSALcz0LCqGy5jh81IIh8xZ4SBn0XYgaMlq t/XuP34Dqgll1vDBJjS2Tye1VxkI31O4m+tmdfM/FjpIh0FembAXEyfZTJwiqNIuEhCxs1 i28oeZ0cj4Hf8yfveqm9UKqyYaOtq14= X-MC-Unique: _D3hFqClOKuYkbt1zNa3PQ-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 1/4] tools: virt-host-validate: fix memory leak Date: Tue, 23 Nov 2021 15:19:55 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com 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.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1637677235312100005 virHostValidateGetCPUFlags returns an allocated virBitmap and it needs to be freed. Fixes: a0ec7165e3bbc416478740f6d2e8fef2ece18602 Signed-off-by: J=C3=A1n Tomko --- tools/virt-host-validate-ch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virt-host-validate-ch.c b/tools/virt-host-validate-ch.c index b00fdd0e90..b26f82738d 100644 --- a/tools/virt-host-validate-ch.c +++ b/tools/virt-host-validate-ch.c @@ -28,7 +28,7 @@ int virHostValidateCh(void) { int ret =3D 0; - virBitmap *flags; + g_autoptr(virBitmap) flags =3D NULL; bool hasHwVirt =3D false; bool hasVirtFlag =3D false; virArch arch =3D virArchFromHost(); --=20 2.31.1