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=1612411158; cv=none; d=zohomail.com; s=zohoarc; b=M1VSYS8ZCUb4S8vwZk3BeOb1Yoym6gBPE3MZ8HZUXF1A+8erS5p4aQaxyZEXmVuvPFkLUMzadqAFDNxuTvsDS+K2kmIjhaAuMfln6Zu/Yogy1KN95mwdUJgqrJmX+nvp4Qld8KVDRqpU8EF+sxmYMmLi49hlotVJ2llDhPmqfIE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612411158; 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=aYb8AApt6oG8ANQG4kQW3OvhY+pFREEx+dVtxCa7KPw=; b=NlMZuFWUmq3OBJK78XObeXMScIc0Ue5BI3Tl1iFnzPzpf0oowC/e50IdRvMala5VwUwgjskVYiQKjdWAyppMqSBznyvHY8bsxSQZ2GXLayFo93zS+Y/WjvO92ugWeLeNBF+Tt4Jym8sCkggrsc3UC1PuIQe140eBjTV9eLULZfg= 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 1612411158605661.5431464357454; Wed, 3 Feb 2021 19:59:18 -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-175-zwBu9DJLP76m9zkuNok9vA-1; Wed, 03 Feb 2021 22:58:22 -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 D565C107AD24; Thu, 4 Feb 2021 03:58:14 +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 AAD4960C5F; Thu, 4 Feb 2021 03:58:14 +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 74D2558073; Thu, 4 Feb 2021 03:58:14 +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 1143w4ND003388 for ; Wed, 3 Feb 2021 22:58:04 -0500 Received: by smtp.corp.redhat.com (Postfix) id 212375B697; Thu, 4 Feb 2021 03:58:04 +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 E12FD5B695 for ; Thu, 4 Feb 2021 03:58:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612411157; 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=aYb8AApt6oG8ANQG4kQW3OvhY+pFREEx+dVtxCa7KPw=; b=MlDZcM+pILtcy7SFvVDlBQm2YUKrtVli229gS18f66Y0lOLmXdT4HfANV9X9bgsDkW75S3 3KGzQ7i+OmqNEVbzYOapJrYnJsr5cbLi4vmAVi9qe5jAcSB73Z2LGmSPuuHDNtzguv8Py6 v+pfr4VVdVicHptBtPxP9x0TV53U8e8= X-MC-Unique: zwBu9DJLP76m9zkuNok9vA-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH v2 09/24] vz: replace VIR_FREE with g_free in all vir*Free() functions Date: Wed, 3 Feb 2021 22:57:36 -0500 Message-Id: <20210204035751.164765-10-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/vz/vz_driver.c | 8 ++++---- src/vz/vz_utils.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c index b60e99d4f5..0ebcb06234 100644 --- a/src/vz/vz_driver.c +++ b/src/vz/vz_driver.c @@ -2729,10 +2729,10 @@ vzMigrationCookieFree(vzMigrationCookiePtr mig) if (!mig) return; =20 - VIR_FREE(mig->session_uuid); - VIR_FREE(mig->uuid); - VIR_FREE(mig->name); - VIR_FREE(mig); + g_free(mig->session_uuid); + g_free(mig->uuid); + g_free(mig->name); + g_free(mig); } =20 static int diff --git a/src/vz/vz_utils.c b/src/vz/vz_utils.c index 4a79b55f3e..e5106619b6 100644 --- a/src/vz/vz_utils.c +++ b/src/vz/vz_utils.c @@ -582,7 +582,7 @@ vzDomObjFree(void* p) PrlHandle_Free(pdom->sdkdom); PrlHandle_Free(pdom->stats); virCondDestroy(&pdom->job.cond); - VIR_FREE(pdom); + g_free(pdom); }; =20 #define VZ_JOB_WAIT_TIME (1000 * 30) --=20 2.29.2