From nobody Mon Feb 9 12:43:09 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1612409565; cv=none; d=zohomail.com; s=zohoarc; b=Sg5FfL0pNRne2gm72PpSKzBSDCopA8BHl7y0b3uifei+9rgxax5r4vFgTwHqJQPFDvJYjO+1xTP5gUIBZCE7k3G/RyE7DLerASbztDKSaLdzgsHPj1AVT6MTfAHJUQeqldE1cxzlCicF+auxnvyp6xtT1TEgF4KGRcJbqvRzNjU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612409565; 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=BV8fCj/b0YobysTRcWZ/5rXqCFooOY5wJBBHc+U0MGQ=; b=Lp1x1O3O/FjKRmZVy+iDHWBDnKqQIqnRnrWBJfaKq9NTTIZVFwL8KUQBM3PzPGc7cyHsTlc6wCHZ2isUehGBrnbgALWgIryBwGfUZxezxCRPeF7G0L8P0xp6CGXRensVzROmioAJ5wiY4u3zCAlaysT6DgJKM6kU2a01KHTHJWE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.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 [63.128.21.124]) by mx.zohomail.com with SMTPS id 1612409565048800.3186863887386; Wed, 3 Feb 2021 19:32:45 -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-384-Ydbq_fs-Nzec9kCTDylhdg-1; Wed, 03 Feb 2021 22:32:42 -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 A942E10066F5; Thu, 4 Feb 2021 03:32:36 +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 7B38BE16B; Thu, 4 Feb 2021 03:32:36 +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 118AA1800232; Thu, 4 Feb 2021 03:32:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1143Tb5I031637 for ; Wed, 3 Feb 2021 22:29:37 -0500 Received: by smtp.corp.redhat.com (Postfix) id 487C76091B; Thu, 4 Feb 2021 03:29:37 +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 12AD577BE9 for ; Thu, 4 Feb 2021 03:29:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612409564; 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=BV8fCj/b0YobysTRcWZ/5rXqCFooOY5wJBBHc+U0MGQ=; b=SUUasjHOsUsxE2UlhO5APvObbitrFgLCPRjp5qIYhc6DPReqjFSuR07Fk5OnkQtaUhE4uN RQQbMDujkbe9qlfAdOd49aC6Zk5NtllXiyI0ugr5WXu8l2S3uY08B4xFY96nrlh6yCoi8R WkUKgqczVWnHJEcjry5FV3cAMfi0Sms= X-MC-Unique: Ydbq_fs-Nzec9kCTDylhdg-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH 19/21] libvirtd: replace straggler VIR_FREE with g_free in all vir*Free() functions Date: Wed, 3 Feb 2021 22:29:15 -0500 Message-Id: <20210204032917.162962-20-laine@redhat.com> In-Reply-To: <20210204032917.162962-1-laine@redhat.com> References: <20210204032917.162962-1-laine@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 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-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Laine Stump --- src/libvirt-domain.c | 18 +++++++++--------- src/libvirt-network.c | 14 +++++++------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index c9f8ffdb56..dba89a7d3a 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -7789,8 +7789,8 @@ virDomainIOThreadInfoFree(virDomainIOThreadInfoPtr in= fo) if (!info) return; =20 - VIR_FREE(info->cpumap); - VIR_FREE(info); + g_free(info->cpumap); + g_free(info); } =20 =20 @@ -12084,10 +12084,10 @@ virDomainStatsRecordListFree(virDomainStatsRecord= Ptr *stats) for (next =3D stats; *next; next++) { virTypedParamsFree((*next)->params, (*next)->nparams); virDomainFree((*next)->dom); - VIR_FREE(*next); + g_free(*next); } =20 - VIR_FREE(stats); + g_free(stats); } =20 =20 @@ -12281,14 +12281,14 @@ virDomainInterfaceFree(virDomainInterfacePtr ifac= e) if (!iface) return; =20 - VIR_FREE(iface->name); - VIR_FREE(iface->hwaddr); + g_free(iface->name); + g_free(iface->hwaddr); =20 for (i =3D 0; i < iface->naddrs; i++) - VIR_FREE(iface->addrs[i].addr); - VIR_FREE(iface->addrs); + g_free(iface->addrs[i].addr); + g_free(iface->addrs); =20 - VIR_FREE(iface); + g_free(iface); } =20 =20 diff --git a/src/libvirt-network.c b/src/libvirt-network.c index f691b672c7..92bdbacbff 100644 --- a/src/libvirt-network.c +++ b/src/libvirt-network.c @@ -1240,13 +1240,13 @@ virNetworkDHCPLeaseFree(virNetworkDHCPLeasePtr leas= e) { if (!lease) return; - VIR_FREE(lease->iface); - VIR_FREE(lease->mac); - VIR_FREE(lease->iaid); - VIR_FREE(lease->ipaddr); - VIR_FREE(lease->hostname); - VIR_FREE(lease->clientid); - VIR_FREE(lease); + g_free(lease->iface); + g_free(lease->mac); + g_free(lease->iaid); + g_free(lease->ipaddr); + g_free(lease->hostname); + g_free(lease->clientid); + g_free(lease); } =20 =20 --=20 2.29.2