From nobody Thu May 2 09:50:37 2024 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 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 16136528868001017.1150774988486; Thu, 18 Feb 2021 04:54:46 -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-1-erPftALbPcqsuv9YEbQxOw-1; Thu, 18 Feb 2021 07:54:42 -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 0044C107ACFA; Thu, 18 Feb 2021 12:54:36 +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 9E23A10023B6; Thu, 18 Feb 2021 12:54: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 4DCB418095CB; Thu, 18 Feb 2021 12:54: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 11ICsXw0017809 for ; Thu, 18 Feb 2021 07:54:33 -0500 Received: by smtp.corp.redhat.com (Postfix) id DDB0717DC3; Thu, 18 Feb 2021 12:54:33 +0000 (UTC) Received: from hjs.redhat.com (unknown [10.43.2.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 66FC96E510 for ; Thu, 18 Feb 2021 12:54:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1613652885; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=0blmHthOG2ia5r8JsDKaxNmjBPFfnQSD0752DO1Zus0=; b=F1wKpJ1XN9Df3s/Qbvit0l9AO5EVLuPObu/Ptdtoxm9kyPMsOaE83TgBIUS6aBiAlgeIpe xo9tiPMuoMkNi8FVfEdfTYMzkvljfFQk+VUn/TAA3MsWAgnk4Dt/QXFNVOOJY4HWik1Ae0 cn7AZWxt5sQjQNXSRhy1ETIg1nVjDpI= X-MC-Unique: erPftALbPcqsuv9YEbQxOw-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH] esx: use g_autofree for datastoreRelatedPath Date: Thu, 18 Feb 2021 13:54:28 +0100 Message-Id: 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Reported by Coverity. Fixes: 213662813cd846d045be8857dc7b917d33a40989 Signed-off-by: J=C3=A1n Tomko --- Pushed as trivial. src/esx/esx_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index e49975de86..96cc8bda0d 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -2886,7 +2886,7 @@ esxDomainDefineXMLFlags(virConnectPtr conn, const cha= r *xml, unsigned int flags) g_autofree char *escapedName =3D NULL; g_auto(virBuffer) buffer =3D VIR_BUFFER_INITIALIZER; g_autofree char *url =3D NULL; - char *datastoreRelatedPath =3D NULL; + g_autofree char *datastoreRelatedPath =3D NULL; esxVI_String *propertyNameList =3D NULL; esxVI_ObjectContent *hostSystem =3D NULL; esxVI_ManagedObjectReference *resourcePool =3D NULL; --=20 2.26.2