From nobody Mon Feb 9 17:23:18 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=1612409554; cv=none; d=zohomail.com; s=zohoarc; b=L25FROLXOGsajSHYAgVNfudTgC2fdkpnIV0jtya/0gWeWnYqp98hj9CU5eLNzMgCWdknWQdNkCiv36v4zpDsJzc+bsHD2qxmfkk3l7lySV6bbxIWqyRTVtHWUNRFvtKkpGs/9TqcYIAh+hdyHJ3I9JAk84SxJwBX1kv1wPUVdgk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612409554; 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=BBY+jb2EKJWA3mymo4fuUZNql+CJk8X6IrXVIvFIxXE=; b=O5GzMGssHhRhrVQmwHYmS9RI4jD3SKczlmYDFP9r/UH9M5iBHdwNeOmemoKGQjWXpIRWewAs4UH7nWV/+7F27z9I6IPOKpzxqokWELCVbuFEIcHkf5tqSqbj84qv7ptQh+ftmTSJeXj5t/+7wd5dozGYOvC5h0VeQPv7ukGLZi4= 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 1612409554264657.7947401035851; Wed, 3 Feb 2021 19:32:34 -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-452-T7d_vojyPc2PVSbSUXjweQ-1; Wed, 03 Feb 2021 22:32:30 -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 B7E0CE76F; Thu, 4 Feb 2021 03:32:19 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 91DDE101E817; Thu, 4 Feb 2021 03:32:19 +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 312A218095CC; Thu, 4 Feb 2021 03:32:19 +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 1143TVt3031509 for ; Wed, 3 Feb 2021 22:29:31 -0500 Received: by smtp.corp.redhat.com (Postfix) id 83B6D779FB; 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 4E8596091B 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=1612409553; 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=BBY+jb2EKJWA3mymo4fuUZNql+CJk8X6IrXVIvFIxXE=; b=NToRCyM3MbJQvcroAiZj2XyXidZ4dYoWFxSc+yxuGHqaBKM2j/fs0u5M4vBuTe6AQutADn SX8aavXd3hhV3BXkr3adiKgYf15zm6eEfxeNn4vyNAD3QrLFqW2pGS/TZQEFzdFWH5HoL9 CeDZzYTgeu1PsJ0qVO6rTK5yupUavMc= X-MC-Unique: T7d_vojyPc2PVSbSUXjweQ-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH 03/21] bhyve: replace VIR_FREE with g_free in all vir*Free() functions Date: Wed, 3 Feb 2021 22:28:59 -0500 Message-Id: <20210204032917.162962-4-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/bhyve/bhyve_conf.c | 6 +++--- src/bhyve/bhyve_domain.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bhyve/bhyve_conf.c b/src/bhyve/bhyve_conf.c index f3e2ebf7c7..9012eb8b5f 100644 --- a/src/bhyve/bhyve_conf.c +++ b/src/bhyve/bhyve_conf.c @@ -109,8 +109,8 @@ bhyveDomainCmdlineDefFree(bhyveDomainCmdlineDefPtr def) return; =20 for (i =3D 0; i < def->num_args; i++) - VIR_FREE(def->args[i]); + g_free(def->args[i]); =20 - VIR_FREE(def->args); - VIR_FREE(def); + g_free(def->args); + g_free(def); } diff --git a/src/bhyve/bhyve_domain.c b/src/bhyve/bhyve_domain.c index f0e553113f..1d99ba6c96 100644 --- a/src/bhyve/bhyve_domain.c +++ b/src/bhyve/bhyve_domain.c @@ -50,7 +50,7 @@ bhyveDomainObjPrivateFree(void *data) =20 virDomainPCIAddressSetFree(priv->pciaddrs); =20 - VIR_FREE(priv); + g_free(priv); } =20 virDomainXMLPrivateDataCallbacks virBhyveDriverPrivateDataCallbacks =3D { --=20 2.29.2