From nobody Sat Feb 7 08:55:17 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=1612413607; cv=none; d=zohomail.com; s=zohoarc; b=dDiWRHW+kkajzK0lovD2DvTHm7MHZD5rQUL3zWNkr9XQ5sMb9OvsopB4lmRZG1QDRPWaJTDvpBlgvUK3UVDUpEWjfNHW34FkqBMLwK3XFLJ3ffnfzBdIr/zxDEtfOd4G3yca2wG/k0q2mlPWXVoPCNWgD9ken/geRnKxkx9/TpI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612413607; 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=bOPjOJmxYX7P45Ax0A4iXRRvDV8K3Z2eKJfyszQtRFI=; b=joEGQYuWgA1YMUuQ7/xmqI+u9mC8vWzCWNJJhiGGZx6Lb91RCPAoPlvuRGQfAYJSaBPzFe7suVj8vtKRt6IHqYE3lUbVVW2KcygR2loc3U2Q1alVFMSr1Odq8Yfz9mYQMh619uyNk14Ow6GYebeVe5NPb0ZkfrHn2o7nTcwThMs= 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 1612413607275271.5369363620449; Wed, 3 Feb 2021 20:40:07 -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-299-Jl5og5uuMCOcZi3M42C64Q-1; Wed, 03 Feb 2021 23:39:13 -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 CC194801968; Thu, 4 Feb 2021 04:39:07 +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 A4AC91A266; Thu, 4 Feb 2021 04:39:07 +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 713E55807F; Thu, 4 Feb 2021 04:39:07 +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 1144ckNo011409 for ; Wed, 3 Feb 2021 23:38:46 -0500 Received: by smtp.corp.redhat.com (Postfix) id 52745100AE4E; Thu, 4 Feb 2021 04:38:46 +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 1D27C100AE4D for ; Thu, 4 Feb 2021 04:38:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612413606; 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=bOPjOJmxYX7P45Ax0A4iXRRvDV8K3Z2eKJfyszQtRFI=; b=KYjarVOWX8qU6C22WAnBWLSBarxKZLn5200NNNdoDcu1QdGyes9P/Siy/w3T63zNvsskim Hp4SLspKvPlrlii9Wxb/zF0JauGgn6y53W9s3V54l9mRvdvaEt57sqsEK6vsvChufh5zLH dUQKFUyea5G/7lv1XDb5vuTTI8UW3FQ= X-MC-Unique: Jl5og5uuMCOcZi3M42C64Q-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH 15/15] datatypes: replace VIR_FREE with g_free in all *Dispose() functions Date: Wed, 3 Feb 2021 23:38:34 -0500 Message-Id: <20210204043834.191994-16-laine@redhat.com> In-Reply-To: <20210204043834.191994-1-laine@redhat.com> References: <20210204043834.191994-1-laine@redhat.com> 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-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Laine Stump --- src/datatypes.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/datatypes.c b/src/datatypes.c index 1db38c5aa6..e36f3a2d24 100644 --- a/src/datatypes.c +++ b/src/datatypes.c @@ -347,7 +347,7 @@ virDomainDispose(void *obj) virUUIDFormat(domain->uuid, uuidstr); VIR_DEBUG("release domain %p %s %s", domain, domain->name, uuidstr); =20 - VIR_FREE(domain->name); + g_free(domain->name); virObjectUnref(domain->conn); } =20 @@ -409,7 +409,7 @@ virNetworkDispose(void *obj) virUUIDFormat(network->uuid, uuidstr); VIR_DEBUG("release network %p %s %s", network, network->name, uuidstr); =20 - VIR_FREE(network->name); + g_free(network->name); virObjectUnref(network->conn); } =20 @@ -528,8 +528,8 @@ virInterfaceDispose(void *obj) virInterfacePtr iface =3D obj; VIR_DEBUG("release interface %p %s", iface, iface->name); =20 - VIR_FREE(iface->name); - VIR_FREE(iface->mac); + g_free(iface->name); + g_free(iface->mac); virObjectUnref(iface->conn); } =20 @@ -603,7 +603,7 @@ virStoragePoolDispose(void *obj) if (pool->privateDataFreeFunc) pool->privateDataFreeFunc(pool->privateData); =20 - VIR_FREE(pool->name); + g_free(pool->name); virObjectUnref(pool->conn); } =20 @@ -676,9 +676,9 @@ virStorageVolDispose(void *obj) if (vol->privateDataFreeFunc) vol->privateDataFreeFunc(vol->privateData); =20 - VIR_FREE(vol->key); - VIR_FREE(vol->name); - VIR_FREE(vol->pool); + g_free(vol->key); + g_free(vol->name); + g_free(vol->pool); virObjectUnref(vol->conn); } =20 @@ -734,8 +734,8 @@ virNodeDeviceDispose(void *obj) virNodeDevicePtr dev =3D obj; VIR_DEBUG("release dev %p %s", dev, dev->name); =20 - VIR_FREE(dev->name); - VIR_FREE(dev->parentName); + g_free(dev->name); + g_free(dev->parentName); =20 virObjectUnref(dev->conn); } @@ -798,7 +798,7 @@ virSecretDispose(void *obj) virUUIDFormat(secret->uuid, uuidstr); VIR_DEBUG("release secret %p %s", secret, uuidstr); =20 - VIR_FREE(secret->usageID); + g_free(secret->usageID); virObjectUnref(secret->conn); } =20 @@ -910,7 +910,7 @@ virNWFilterDispose(void *obj) virUUIDFormat(nwfilter->uuid, uuidstr); VIR_DEBUG("release nwfilter %p %s %s", nwfilter, nwfilter->name, uuids= tr); =20 - VIR_FREE(nwfilter->name); + g_free(nwfilter->name); virObjectUnref(nwfilter->conn); } =20 @@ -972,8 +972,8 @@ virNWFilterBindingDispose(void *obj) =20 VIR_DEBUG("release binding %p %s", binding, binding->portdev); =20 - VIR_FREE(binding->portdev); - VIR_FREE(binding->filtername); + g_free(binding->portdev); + g_free(binding->filtername); virObjectUnref(binding->conn); } =20 @@ -1030,7 +1030,7 @@ virDomainCheckpointDispose(void *obj) virDomainCheckpointPtr checkpoint =3D obj; VIR_DEBUG("release checkpoint %p %s", checkpoint, checkpoint->name); =20 - VIR_FREE(checkpoint->name); + g_free(checkpoint->name); virObjectUnref(checkpoint->domain); } =20 @@ -1086,7 +1086,7 @@ virDomainSnapshotDispose(void *obj) virDomainSnapshotPtr snapshot =3D obj; VIR_DEBUG("release snapshot %p %s", snapshot, snapshot->name); =20 - VIR_FREE(snapshot->name); + g_free(snapshot->name); virObjectUnref(snapshot->domain); } =20 @@ -1222,7 +1222,7 @@ virAdmServerDispose(void *obj) virAdmServerPtr srv =3D obj; VIR_DEBUG("release server srv=3D%p name=3D%s", srv, srv->name); =20 - VIR_FREE(srv->name); + g_free(srv->name); virObjectUnref(srv->conn); } =20 --=20 2.29.2