From nobody Tue Feb 10 23:01:27 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=1612411090; cv=none; d=zohomail.com; s=zohoarc; b=lDyFhkiwe/mCRhsp3O/vI+rxNo2iYEJHCKdem1t0JMhWcV6kRUdkwEBnqEpbSvXoeShmUhRuitaqfYW77RgHx3G8nEZNtLjHUM361EP9NBFYFnU93O2xe7cURUQfOVTCPxNPuSkHOV4W76DdS3GuJAkOK8yU1X/KDp8nq1LUagI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612411090; 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=OViBLKcuWlzCZbaFhWiqgngtGyGLF7aDyxV25DSt5+Y=; b=ZMjUCyROXTZ+2WAdrkFskdER/pBl3ThbmmVgh0tOXt/PLpriSt4U+xWu904b00cXw0ixq7q5B5J5mg3XWWwauh5fmr6FmAgUgyEUCB8FPFwcdDmE4558OpkaXQ4979tOAMmuYqYANSKS5mh6cF3QpIfo5AXVc+2JEvINV1kEH0A= 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 1612411090522560.2865791194389; Wed, 3 Feb 2021 19:58:10 -0800 (PST) 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-31-edIrVgixMaOs7ztyalKsRQ-1; Wed, 03 Feb 2021 22:58:07 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4FA58107ACE4; Thu, 4 Feb 2021 03:58:01 +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 21685722D1; Thu, 4 Feb 2021 03:58:00 +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 9B53B4EE4D; Thu, 4 Feb 2021 03:57:58 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1143vvZ4003312 for ; Wed, 3 Feb 2021 22:57:57 -0500 Received: by smtp.corp.redhat.com (Postfix) id 68D7F5B697; Thu, 4 Feb 2021 03:57:57 +0000 (UTC) Received: from vhost2.laine.org (ovpn-112-199.phx2.redhat.com [10.3.112.199]) by smtp.corp.redhat.com (Postfix) with ESMTP id 33B765B695 for ; Thu, 4 Feb 2021 03:57:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612411089; 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=OViBLKcuWlzCZbaFhWiqgngtGyGLF7aDyxV25DSt5+Y=; b=ZHjMxfMcg09UW5CMUqUGLS+VZFoo41EMcxbDICn6Jzws+s87uWbM7v/fW1OGFFzMhvKbOt jeqbkVp3Wec+DV0eNt1UdcWKCPKaISnhoYoo16eA/L1WYDp4ucpBZ+rFpvXeLbXFRw5MOp 2/Y5HyDcE+ylB+oRQc8qe86tROwJ+NA= X-MC-Unique: edIrVgixMaOs7ztyalKsRQ-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH v2 01/24] conf: replace remaining straggler VIR_FREE with g_free in vir*Free() Date: Wed, 3 Feb 2021 22:57:28 -0500 Message-Id: <20210204035751.164765-2-laine@redhat.com> In-Reply-To: <20210204035751.164765-1-laine@redhat.com> References: <20210204035751.164765-1-laine@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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.79 on 10.5.11.11 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-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" I missed a few in commit f9f81f1c Signed-off-by: Laine Stump --- src/conf/domain_conf.c | 6 +++--- src/conf/numa_conf.c | 10 +++++----- src/conf/storage_encryption_conf.c | 2 +- src/conf/virchrdev.c | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 12ebdb37f4..3f71297283 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -26528,7 +26528,7 @@ virDomainRNGDefFree(virDomainRNGDefPtr def) =20 switch ((virDomainRNGBackend) def->backend) { case VIR_DOMAIN_RNG_BACKEND_RANDOM: - VIR_FREE(def->source.file); + g_free(def->source.file); break; case VIR_DOMAIN_RNG_BACKEND_EGD: virObjectUnref(def->source.chardev); @@ -26539,8 +26539,8 @@ virDomainRNGDefFree(virDomainRNGDefPtr def) } =20 virDomainDeviceInfoClear(&def->info); - VIR_FREE(def->virtio); - VIR_FREE(def); + g_free(def->virtio); + g_free(def); } =20 =20 diff --git a/src/conf/numa_conf.c b/src/conf/numa_conf.c index f8a7a01ac9..338d779e90 100644 --- a/src/conf/numa_conf.c +++ b/src/conf/numa_conf.c @@ -416,15 +416,15 @@ virDomainNumaFree(virDomainNumaPtr numa) virBitmapFree(numa->mem_nodes[i].nodeset); =20 if (numa->mem_nodes[i].ndistances > 0) - VIR_FREE(numa->mem_nodes[i].distances); + g_free(numa->mem_nodes[i].distances); =20 - VIR_FREE(numa->mem_nodes[i].caches); + g_free(numa->mem_nodes[i].caches); } - VIR_FREE(numa->mem_nodes); + g_free(numa->mem_nodes); =20 - VIR_FREE(numa->interconnects); + g_free(numa->interconnects); =20 - VIR_FREE(numa); + g_free(numa); } =20 /** diff --git a/src/conf/storage_encryption_conf.c b/src/conf/storage_encrypti= on_conf.c index 7fd0df70a9..e2ae7f7b51 100644 --- a/src/conf/storage_encryption_conf.c +++ b/src/conf/storage_encryption_conf.c @@ -64,7 +64,7 @@ virStorageEncryptionSecretFree(virStorageEncryptionSecret= Ptr secret) if (!secret) return; virSecretLookupDefClear(&secret->seclookupdef); - VIR_FREE(secret); + g_free(secret); } =20 void diff --git a/src/conf/virchrdev.c b/src/conf/virchrdev.c index d356a1babf..e5257650d4 100644 --- a/src/conf/virchrdev.c +++ b/src/conf/virchrdev.c @@ -223,8 +223,8 @@ static void virChrdevFDStreamCloseCbFree(void *opaque) { virChrdevStreamInfoPtr priv =3D opaque; =20 - VIR_FREE(priv->path); - VIR_FREE(priv); + g_free(priv->path); + g_free(priv); } =20 /** @@ -304,7 +304,7 @@ void virChrdevFree(virChrdevsPtr devs) virMutexUnlock(&devs->lock); virMutexDestroy(&devs->lock); =20 - VIR_FREE(devs); + g_free(devs); } =20 /** --=20 2.29.2