From nobody Sat Feb 7 08:53:36 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=1612413541; cv=none; d=zohomail.com; s=zohoarc; b=aZpZWPr9RlEwsc4hOT6jEn8kkdS3YCCyg2Q52moRtLTykSUU0Te7v478kyhVFeAycNEfXcTDMS/uCGylSGzVfE32bp+p3VrcphyefeK5DyWgJ82Z4866Fw2vHaTsKS1ICC+SeNi+k4H2KZNR9nhO8mRJXVjYFHkgE3l0sp0ymSE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612413541; 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=Kv/vjGapqvGk8ULlfrl0Chtwirbo67eW3kI9QfXooW0=; b=JiogiD22FyzwMyAqhzmV6XezZDceDxv8jeeH97y57RYuebCrRd+sh8JvmHDRUIZ5jrvEIRco3rbbLSifHvHxLorYQ9WMbvj4uBPQZv4J29t/i2FbGAHjsyiLDo4abibmM/9hmLn96H+tUhGWE091QtzQ/USgZRWNmP46FsjAJDk= 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 1612413541363875.8795920131441; Wed, 3 Feb 2021 20:39:01 -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-449-I97EkY1iPjCx2zwSIy4VMg-1; Wed, 03 Feb 2021 23:38:58 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6B2FE107ACE4; Thu, 4 Feb 2021 04:38:52 +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 4CD295D9C0; Thu, 4 Feb 2021 04:38:52 +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 185A31809C8F; Thu, 4 Feb 2021 04:38:52 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1144cdxC011295 for ; Wed, 3 Feb 2021 23:38:39 -0500 Received: by smtp.corp.redhat.com (Postfix) id 74C22100AE4D; Thu, 4 Feb 2021 04:38:39 +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 3FDA2100763D for ; Thu, 4 Feb 2021 04:38:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612413540; 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=Kv/vjGapqvGk8ULlfrl0Chtwirbo67eW3kI9QfXooW0=; b=WsvGrXLQ6D7FpU2EgUnL5m86mG4FGA76N/wH/ibdPCm7fzdjrOVOKMsRfrf/48HJQScdoO ekGwna1QH87Pgv4TTT+pNU4KTdTaPXhpDC5H3QFzHAMZ73xB1bzaR/oBTAqSvbM9SdMFN8 SOBgQxT042JlzC34FGYIjkemJzvmLgQ= X-MC-Unique: I97EkY1iPjCx2zwSIy4VMg-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH 04/15] libxl: replace VIR_FREE with g_free in all *Dispose() functions Date: Wed, 3 Feb 2021 23:38:23 -0500 Message-Id: <20210204043834.191994-5-laine@redhat.com> In-Reply-To: <20210204043834.191994-1-laine@redhat.com> References: <20210204043834.191994-1-laine@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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.14 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_conf.c | 20 ++++++++++---------- src/libxl/libxl_migration.c | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index de0fd66842..37a2c2e3cd 100644 --- a/src/libxl/libxl_conf.c +++ b/src/libxl/libxl_conf.c @@ -76,16 +76,16 @@ libxlDriverConfigDispose(void *obj) if (cfg->logger) libxlLoggerFree(cfg->logger); =20 - VIR_FREE(cfg->configBaseDir); - VIR_FREE(cfg->configDir); - VIR_FREE(cfg->autostartDir); - VIR_FREE(cfg->logDir); - VIR_FREE(cfg->stateDir); - VIR_FREE(cfg->libDir); - VIR_FREE(cfg->saveDir); - VIR_FREE(cfg->autoDumpDir); - VIR_FREE(cfg->lockManagerName); - VIR_FREE(cfg->channelDir); + g_free(cfg->configBaseDir); + g_free(cfg->configDir); + g_free(cfg->autostartDir); + g_free(cfg->logDir); + g_free(cfg->stateDir); + g_free(cfg->libDir); + g_free(cfg->saveDir); + g_free(cfg->autoDumpDir); + g_free(cfg->lockManagerName); + g_free(cfg->channelDir); virFirmwareFreeList(cfg->firmwares, cfg->nfirmwares); } =20 diff --git a/src/libxl/libxl_migration.c b/src/libxl/libxl_migration.c index 72b6cb32cb..c56fdd98ab 100644 --- a/src/libxl/libxl_migration.c +++ b/src/libxl/libxl_migration.c @@ -228,7 +228,7 @@ libxlMigrationDstArgsDispose(void *obj) libxlMigrationDstArgs *args =3D obj; =20 libxlMigrationCookieFree(args->migcookie); - VIR_FREE(args->socks); + g_free(args->socks); virObjectUnref(args->conn); virObjectUnref(args->vm); } --=20 2.29.2