From nobody Sun Feb 8 17:04:49 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=1613107738; cv=none; d=zohomail.com; s=zohoarc; b=hlIhg7pFQDZy/YvYUnYBTt0LnKmsbfSS3z4xHiad7RGelD4eVZTa5s1199TyvLNYsWbl4qkEGI7jYkPJSrsfWVXiAcVxHb8l/e4tGxINcxAa/EbGE1l5eR4H2pFPciHnfktAkb59u4Zh87qTkTMYN+1VfRlYN5IWKSkVhNI1Ihc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1613107738; 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=AtBbcinbbp3X1nivVpzhHvLKsrtO/SQe7sLbkjI/9BM=; b=PgVGMH1UH/jDGhPjysksqOaPhOK7rW8vaau0Pc20/J60E+BaQuQ+s3CT/5vN4zt658ww5n9m5q8i2gx+KxwjuIR+A+FvCXOJMqgHEwjOXMhEtOlTXJyli2/r2IHRGP0WtvNatqnG0LJyEYitqYz17DwXYEf7L6j3vo/E3HPjGWY= 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 1613107738153735.6698571363168; Thu, 11 Feb 2021 21:28:58 -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-512-ceLY5y4_NmmxGFuCuu8Wqw-1; Fri, 12 Feb 2021 00:28:54 -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 D847B1009622; Fri, 12 Feb 2021 05:28:48 +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 AFAB01F4; Fri, 12 Feb 2021 05:28:48 +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 76BC957DFD; Fri, 12 Feb 2021 05:28:48 +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 11C5SQPA017172 for ; Fri, 12 Feb 2021 00:28:26 -0500 Received: by smtp.corp.redhat.com (Postfix) id 9F22A10016F6; Fri, 12 Feb 2021 05:28:26 +0000 (UTC) Received: from vhost2.router.laine.org (ovpn-112-48.phx2.redhat.com [10.3.112.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 66E6910013D7 for ; Fri, 12 Feb 2021 05:28:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1613107737; 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=AtBbcinbbp3X1nivVpzhHvLKsrtO/SQe7sLbkjI/9BM=; b=bePR/6nsq+buwb4leu8C9nU3GbfFccFk84BVXnrWGqq3inugJyV17RiHygAecnEmCg3uq3 u3I6L16NqKMnADdk43Qmsh/N8gfoD5ntwKluMVkCqoFIcpww5gYFCAv2gVFwvP70OZu19A Scs0CaOzNzNzBA7DwMO3+5/FbMvlJAc= X-MC-Unique: ceLY5y4_NmmxGFuCuu8Wqw-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH 7/8] util: convert VIR_FREE to g_free in other functions that free their arg Date: Fri, 12 Feb 2021 00:28:17 -0500 Message-Id: <20210212052818.684878-8-laine@redhat.com> In-Reply-To: <20210212052818.684878-1-laine@redhat.com> References: <20210212052818.684878-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/util/virconf.c | 4 ++-- src/util/virerror.c | 4 ++-- src/util/virobject.c | 2 +- src/util/virstring.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/util/virconf.c b/src/util/virconf.c index d85fc32b64..16107bce96 100644 --- a/src/util/virconf.c +++ b/src/util/virconf.c @@ -151,11 +151,11 @@ virConfFreeValue(virConfValuePtr val) return; if (val->type =3D=3D VIR_CONF_STRING && val->str !=3D NULL) - VIR_FREE(val->str); + g_free(val->str); if (val->type =3D=3D VIR_CONF_LIST && val->list !=3D NULL) virConfFreeList(val->list); - VIR_FREE(val); + g_free(val); } =20 virConfPtr diff --git a/src/util/virerror.c b/src/util/virerror.c index 14054add41..708081414a 100644 --- a/src/util/virerror.c +++ b/src/util/virerror.c @@ -158,7 +158,7 @@ virLastErrFreeData(void *data) if (!err) return; virResetError(err); - VIR_FREE(err); + g_free(err); } =20 =20 @@ -477,7 +477,7 @@ void virFreeError(virErrorPtr err) { virResetError(err); - VIR_FREE(err); + g_free(err); } =20 /** diff --git a/src/util/virobject.c b/src/util/virobject.c index ce40ffae22..370a64bd6d 100644 --- a/src/util/virobject.c +++ b/src/util/virobject.c @@ -655,5 +655,5 @@ virObjectListFreeCount(void *list, for (i =3D 0; i < count; i++) virObjectUnref(((void **)list)[i]); =20 - VIR_FREE(list); + g_free(list); } diff --git a/src/util/virstring.c b/src/util/virstring.c index c98435388a..c3e64007fe 100644 --- a/src/util/virstring.c +++ b/src/util/virstring.c @@ -108,9 +108,9 @@ virStringListFreeCount(char **strings, return; =20 for (i =3D 0; i < count; i++) - VIR_FREE(strings[i]); + g_free(strings[i]); =20 - VIR_FREE(strings); + g_free(strings); } =20 =20 --=20 2.29.2