From nobody Mon Feb 9 16:02:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1599830597; cv=none; d=zohomail.com; s=zohoarc; b=BiUwyHCYJwznxPWH+Y739WZkxxO5Qhe56bKlo27gJUOvxmDPHmzgWibLoIZcMg72AOSVO/pMlvpxBN3z3fTsVEfMtQ+DJcz0bCGT8oouvIsLr2Xlw6/89ohNa+ZxhKRFHT3/BZMjgPr/GAZD9lIM+2P3xTlWg31RPitfja588uc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599830597; 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=9NP2PTFbvYdvyONyk+TVJqDuGGNSbNApfBxaOGcLO14=; b=F4MVqU1A+zdwof7ZSTDdp+RtjP3Yq4D5RaYaNtx1IlNBXEvA1rOO64fig69tPViz2yXYgnfLSuWGECiJnqMzZL6QSN2ytPLppYo1oCCq81Vr68nLsbxL2BTXRB6F+H3NYKNNDfD13ecqOMhKJLe6DXXgTfQlXfdMJAGis+ErD8U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 159983059760037.005090890528436; Fri, 11 Sep 2020 06:23:17 -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-471-6pJwYXbEP16xHapd8aKZdg-1; Fri, 11 Sep 2020 09:23:11 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B22E08D0309; Fri, 11 Sep 2020 13:23:05 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8F87D1002D57; Fri, 11 Sep 2020 13:23:05 +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 5A976181A870; Fri, 11 Sep 2020 13:23:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08BDN1hm025379 for ; Fri, 11 Sep 2020 09:23:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8BE8160C11; Fri, 11 Sep 2020 13:23:01 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-163.ams2.redhat.com [10.36.112.163]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9E34360C15; Fri, 11 Sep 2020 13:23:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599830594; 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=9NP2PTFbvYdvyONyk+TVJqDuGGNSbNApfBxaOGcLO14=; b=DC+Mhd6YaSx3D477/lLAYUkd0BnG7+BeIfqwN7g3O+ZVxcAJvcvHvZunO8zspHDkKvygUO L1hEt4/Ugddu5lKmki0ty5gzOcM0xQmCkF0Q/ETijPW+U5/VDbeoXG/iN8vuiPy3kS1Y8d Moh3We71szeftPlkDCqJsr/10faiz+c= X-MC-Unique: 6pJwYXbEP16xHapd8aKZdg-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH v3 4/8] cpu_x86: Use g_auto* in virX86CpuIncompatible Date: Fri, 11 Sep 2020 15:22:45 +0200 Message-Id: <20200911132249.514503-5-twiederh@redhat.com> In-Reply-To: <20200911132249.514503-1-twiederh@redhat.com> References: <20200911132249.514503-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?J=C3=A1n=20Tomko?= , Tim Wiederhake 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.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: Tim Wiederhake Reviewed-by: J=C3=A1n Tomko --- src/cpu/cpu_x86.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index fdb665b01d..db1b2e55a1 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -1797,7 +1797,7 @@ virCPUx86DataParse(xmlXPathContextPtr ctxt) */ #define virX86CpuIncompatible(MSG, CPU_DEF) \ do { \ - char *flagsStr =3D NULL; \ + g_autofree char *flagsStr =3D NULL; \ if (!(flagsStr =3D x86FeatureNames(map, ", ", (CPU_DEF)))) { \ virReportOOMError(); \ return VIR_CPU_COMPARE_ERROR; \ @@ -1805,7 +1805,6 @@ virCPUx86DataParse(xmlXPathContextPtr ctxt) if (message) \ *message =3D g_strdup_printf("%s: %s", _(MSG), flagsStr); \ VIR_DEBUG("%s: %s", MSG, flagsStr); \ - VIR_FREE(flagsStr); \ } while (0) =20 =20 --=20 2.26.2