From nobody Mon Feb 9 15:11:23 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=1612409716; cv=none; d=zohomail.com; s=zohoarc; b=ZoaspVuhP8ka3oEdEg4dFMxunJPAMmUaaZBL9HvphZelZA1zDpSDGreip68CxXCbuYZyRzhFqPG4VNs6M8ar2uxcNKJgjzlGKYK5hc8qdmdWI8aWn+xyMFAJmLsmPNrsw/ptYFs/OxFnHTojXrkdpoACqlzRiTBzQQBLEZzImUk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612409716; 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=9nvSb5RmbeVsybJUHfYWcnnKmOcOlE8bBBdgHpl12P0=; b=OVfQM9WS2Hu3tNsyCad+K9/tVaFOZt15UMKsxhfEMjImF7JFFJUN0HW13hao34rVYeojS69t/WmCnRnDuzsLMO6yAg+OI1I7OKUrmKkAx6cvQ/0nQ4zl9j3N6CmfZhx+K4o7QOeerAW3XJUVbuF+LNmxCbOnG9OUAYr3KPF/730= 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 1612409716509572.6775453014075; Wed, 3 Feb 2021 19:35:16 -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-120-TpPztPCDPhefd9EUNF8BTw-1; Wed, 03 Feb 2021 22:32:57 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 00760E76C; Thu, 4 Feb 2021 03:32:52 +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 D340D5B6BF; Thu, 4 Feb 2021 03:32:51 +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 A183658085; Thu, 4 Feb 2021 03:32:51 +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 1143TZOw031579 for ; Wed, 3 Feb 2021 22:29:35 -0500 Received: by smtp.corp.redhat.com (Postfix) id 22FDE779FB; Thu, 4 Feb 2021 03:29:35 +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 DE5996091B for ; Thu, 4 Feb 2021 03:29:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612409715; 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=9nvSb5RmbeVsybJUHfYWcnnKmOcOlE8bBBdgHpl12P0=; b=L9YxdavGEh9YC4z3lUnwpOTlv2GOKTiTKieIT6WP17h9ZgIqKfMxm1kXQC+mVG3vkD29VB ihodbmxxn4J/FKnACB/KlRml8au4o6/wll99jUYUPCTFHrjxdRBa4ZJVnWXVhIR/r/S9uF XbOS/vKRxYGoZRxRn5udggfB5nCvShs= X-MC-Unique: TpPztPCDPhefd9EUNF8BTw-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH 13/21] remote: replace VIR_FREE with g_free in all vir*Free() functions Date: Wed, 3 Feb 2021 22:29:09 -0500 Message-Id: <20210204032917.162962-14-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.79 on 10.5.11.15 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/remote/remote_daemon_config.c | 48 ++++++++++++++--------------- src/remote/remote_daemon_dispatch.c | 4 +-- src/remote/remote_driver.c | 2 +- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/remote/remote_daemon_config.c b/src/remote/remote_daemon_c= onfig.c index f0cca42925..b354dc4cc0 100644 --- a/src/remote/remote_daemon_config.c +++ b/src/remote/remote_daemon_config.c @@ -173,53 +173,53 @@ daemonConfigFree(struct daemonConfig *data) return; =20 #ifdef WITH_IP - VIR_FREE(data->listen_addr); - VIR_FREE(data->tls_port); - VIR_FREE(data->tcp_port); + g_free(data->listen_addr); + g_free(data->tls_port); + g_free(data->tcp_port); #endif /* ! WITH_IP */ =20 tmp =3D data->access_drivers; while (tmp && *tmp) { - VIR_FREE(*tmp); + g_free(*tmp); tmp++; } - VIR_FREE(data->access_drivers); + g_free(data->access_drivers); =20 - VIR_FREE(data->unix_sock_admin_perms); - VIR_FREE(data->unix_sock_ro_perms); - VIR_FREE(data->unix_sock_rw_perms); - VIR_FREE(data->unix_sock_group); - VIR_FREE(data->unix_sock_dir); + g_free(data->unix_sock_admin_perms); + g_free(data->unix_sock_ro_perms); + g_free(data->unix_sock_rw_perms); + g_free(data->unix_sock_group); + g_free(data->unix_sock_dir); =20 tmp =3D data->sasl_allowed_username_list; while (tmp && *tmp) { - VIR_FREE(*tmp); + g_free(*tmp); tmp++; } - VIR_FREE(data->sasl_allowed_username_list); + g_free(data->sasl_allowed_username_list); =20 #ifdef WITH_IP tmp =3D data->tls_allowed_dn_list; while (tmp && *tmp) { - VIR_FREE(*tmp); + g_free(*tmp); tmp++; } - VIR_FREE(data->tls_allowed_dn_list); + g_free(data->tls_allowed_dn_list); =20 - VIR_FREE(data->tls_priority); + g_free(data->tls_priority); =20 - VIR_FREE(data->key_file); - VIR_FREE(data->ca_file); - VIR_FREE(data->cert_file); - VIR_FREE(data->crl_file); + g_free(data->key_file); + g_free(data->ca_file); + g_free(data->cert_file); + g_free(data->crl_file); #endif /* ! WITH_IP */ =20 - VIR_FREE(data->host_uuid); - VIR_FREE(data->host_uuid_source); - VIR_FREE(data->log_filters); - VIR_FREE(data->log_outputs); + g_free(data->host_uuid); + g_free(data->host_uuid_source); + g_free(data->log_filters); + g_free(data->log_outputs); =20 - VIR_FREE(data); + g_free(data); } =20 static int diff --git a/src/remote/remote_daemon_dispatch.c b/src/remote/remote_daemon= _dispatch.c index 46683aa4a7..b7ef1f4b26 100644 --- a/src/remote/remote_daemon_dispatch.c +++ b/src/remote/remote_daemon_dispatch.c @@ -150,7 +150,7 @@ remoteEventCallbackFree(void *opaque) return; virObjectUnref(callback->program); virObjectUnref(callback->client); - VIR_FREE(callback); + g_free(callback); } =20 =20 @@ -1742,7 +1742,7 @@ void remoteClientFree(void *data) if (priv->storageConn) virConnectClose(priv->storageConn); =20 - VIR_FREE(priv); + g_free(priv); } =20 =20 diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 1b784e61c7..8d6790ccf2 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -5614,7 +5614,7 @@ static void remoteStreamCallbackFree(void *opaque) (cbdata->ff)(cbdata->opaque); =20 virObjectUnref(cbdata->st); - VIR_FREE(opaque); + g_free(opaque); } =20 =20 --=20 2.29.2