From nobody Tue Feb 10 12:45:19 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=1612411212; cv=none; d=zohomail.com; s=zohoarc; b=LYVh+uiDRVGUSmArUloxEdXVJKkWLAszWLsXhEk/VglHxv2SNY2keqVAKHnXzvXeFQbg7CQWN7Lj5QXqPqCuuQNOPswRzYy+SIoIk/U/jjO9r6aTKIEKDdgaZj8hoaPUfhHgGHaGLxQ/5KVtttWEORNK4fbRuY39lhy9s7uPCMk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612411212; 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=DPKz/x7qODw8r2ictuJeQb4cfD8V5EAOLdFL20gmml4=; b=CkplOW0GeTRkxjW4aIrSIvbttMBL0PjmA7DPBUTw2GbOo5gjvKAFFdpX3cJkGdZl/t4B+WzmEz0CLnGGaqaRKRpc1DkcUwmgX2qX9tCv6g4BCOWB7pHMK48QhFv7jwXxEWnX9w07aEozy+JslqAxUDFBndUJTDdsyAifMUidT1g= 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 1612411212671290.9995489855105; Wed, 3 Feb 2021 20:00:12 -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-391-oY6ey5okORa5hcBCbqOmHw-1; Wed, 03 Feb 2021 22:58:26 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AC1A6C2AE; Thu, 4 Feb 2021 03:58:20 +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 8B13560C72; Thu, 4 Feb 2021 03:58:20 +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 5740258085; Thu, 4 Feb 2021 03:58:20 +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 1143w6Ek003441 for ; Wed, 3 Feb 2021 22:58:06 -0500 Received: by smtp.corp.redhat.com (Postfix) id 418545B697; Thu, 4 Feb 2021 03:58:06 +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 0C3425B695 for ; Thu, 4 Feb 2021 03:58:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612411211; 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=DPKz/x7qODw8r2ictuJeQb4cfD8V5EAOLdFL20gmml4=; b=gP/86c8Y+jPX5kbpQu7AGJjfLfUShUZ98ebFL4Jzr7xBjR2dnnM842Npb9gClMITARP759 deG37bJ2S5n+i5blWn28q7Rooc3Nnfj0Dh67SksLdbZx1WxgjfIb8zA2AwB8tCZEQFe2Ih 4imOo5dOX+5wI6brX5QbPQYPaIZBq4M= X-MC-Unique: oY6ey5okORa5hcBCbqOmHw-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH v2 15/24] security: replace VIR_FREE with g_free in all vir*Free() functions Date: Wed, 3 Feb 2021 22:57:42 -0500 Message-Id: <20210204035751.164765-16-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.12 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/security/security_dac.c | 8 ++++---- src/security/security_selinux.c | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/security/security_dac.c b/src/security/security_dac.c index 389d1dac51..00eeae0d27 100644 --- a/src/security/security_dac.c +++ b/src/security/security_dac.c @@ -141,12 +141,12 @@ virSecurityDACChownListFree(void *opaque) return; =20 for (i =3D 0; i < list->nItems; i++) { - VIR_FREE(list->items[i]->path); - VIR_FREE(list->items[i]); + g_free(list->items[i]->path); + g_free(list->items[i]); } - VIR_FREE(list->items); + g_free(list->items); virObjectUnref(list->manager); - VIR_FREE(list); + g_free(list); } =20 =20 diff --git a/src/security/security_selinux.c b/src/security/security_selinu= x.c index 8cc30a0e72..1d1d9edfff 100644 --- a/src/security/security_selinux.c +++ b/src/security/security_selinux.c @@ -108,9 +108,9 @@ virSecuritySELinuxContextItemFree(virSecuritySELinuxCon= textItemPtr item) if (!item) return; =20 - VIR_FREE(item->path); - VIR_FREE(item->tcon); - VIR_FREE(item); + g_free(item->path); + g_free(item->tcon); + g_free(item); } =20 static int @@ -152,9 +152,9 @@ virSecuritySELinuxContextListFree(void *opaque) for (i =3D 0; i < list->nItems; i++) virSecuritySELinuxContextItemFree(list->items[i]); =20 - VIR_FREE(list->items); + g_free(list->items); virObjectUnref(list->manager); - VIR_FREE(list); + g_free(list); } =20 =20 --=20 2.29.2