From nobody Mon Feb 9 12:43:31 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=1612409644; cv=none; d=zohomail.com; s=zohoarc; b=Y0sUMj4Z/RZVGHt0wBEptA7Pe+SVl0Sb3/1XTqR/I/0uXtTVgJyjokfQmnByW74z7TcTyTjitODCBZ+Se40CC+ckqUoE3boL9KcbzAW6wq9kSthcMIB9PxI5MKwzCOfkMOKTQjAlLIxmJ7QEH8IqC6r1RBBYVY3nVVbLoV0FA0g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612409644; 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=0DGhZugHfBTFVh/ssihQvo/ro3xwNMMD/K5EuiO/Bxo=; b=K1tH3eMYB7+PuV2O1xCBctgzyKlCu1zKTbETi4Pn0yPc3EE7di+JogZf+hpKwjTV/m+KoBuy9yEOooutaSXsJtNECVSbO8alC2XOtrcwtPlQ2OSX+1F3P3XJ5sbKmsvSPcG/hJB2x6AdomBga6NCtd5+PE31hrailLnWZxgTDMU= 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 1612409644118898.5342223457686; Wed, 3 Feb 2021 19:34:04 -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-598-GmZrZb1SPdm9pXAfiN-3Aw-1; Wed, 03 Feb 2021 22:32:41 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A6D39107ACF4; Thu, 4 Feb 2021 03:32:35 +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 7F6DD101E81C; Thu, 4 Feb 2021 03:32:35 +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 49B7257DFF; Thu, 4 Feb 2021 03:32:35 +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 1143TVGJ031515 for ; Wed, 3 Feb 2021 22:29:31 -0500 Received: by smtp.corp.redhat.com (Postfix) id DAD396091B; Thu, 4 Feb 2021 03:29:31 +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 A5BFC77BE9 for ; Thu, 4 Feb 2021 03:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612409643; 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=0DGhZugHfBTFVh/ssihQvo/ro3xwNMMD/K5EuiO/Bxo=; b=KW1fMmlmffFPKHOwUnN+yRulXSYqELvP7MRNw3Zhg1wXWkOZgEa1argHMZhILqkdfsWmwS SHM0vdY9Cnb7y80F3DQs4h63z1f6NEJsYQK2mFYZC1wokvIZHr7wZkcxA6DT33nd6idfeQ Lm4A8NmhviIcPFytRbQz2wxWdTNQH9Q= X-MC-Unique: GmZrZb1SPdm9pXAfiN-3Aw-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH 04/21] libxl: replace VIR_FREE with g_free in all vir*Free() functions Date: Wed, 3 Feb 2021 22:29:00 -0500 Message-Id: <20210204032917.162962-5-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.22 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/libxl/libxl_domain.c | 2 +- src/libxl/libxl_driver.c | 2 +- src/libxl/libxl_migration.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libxl/libxl_domain.c b/src/libxl/libxl_domain.c index 380f7e0b56..3bcd369d12 100644 --- a/src/libxl/libxl_domain.c +++ b/src/libxl/libxl_domain.c @@ -239,7 +239,7 @@ libxlDomainObjPrivateFree(void *data) { libxlDomainObjPrivatePtr priv =3D data; =20 - VIR_FREE(priv->lockState); + g_free(priv->lockState); virObjectUnref(priv); } =20 diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c index f480f8067e..2e002b2930 100644 --- a/src/libxl/libxl_driver.c +++ b/src/libxl/libxl_driver.c @@ -127,7 +127,7 @@ libxlDomainManagedSaveLoad(virDomainObjPtr vm, static void libxlOSEventHookInfoFree(void *obj) { - VIR_FREE(obj); + g_free(obj); } =20 static void diff --git a/src/libxl/libxl_migration.c b/src/libxl/libxl_migration.c index 2925aaaa6d..72b6cb32cb 100644 --- a/src/libxl/libxl_migration.c +++ b/src/libxl/libxl_migration.c @@ -82,9 +82,9 @@ libxlMigrationCookieFree(libxlMigrationCookiePtr mig) if (!mig) return; =20 - VIR_FREE(mig->srcHostname); - VIR_FREE(mig->name); - VIR_FREE(mig); + g_free(mig->srcHostname); + g_free(mig->name); + g_free(mig); } =20 static libxlMigrationCookiePtr --=20 2.29.2