From nobody Mon Feb 9 09:23:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.120 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=1573650460; cv=none; d=zoho.com; s=zohoarc; b=Zhzkl335TqGxVBESr+pYDD5QkMnC/uXmToZGJ76cDi3ZEmEBvFY/zETd9cqNQ52l0fQeOd3mgqxI2/HgRNIKyO+gskl2pezzlmaSU0soivNB9mmST67FMw5UVyPybo4THki0PYjekgEiTebuIgSEE5YFKDnXU7UuVWRazdtMhH4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573650460; 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=PA0krRx2dmcDBiyKNec8ShfigmBBREcmj5T7d6h0mr4=; b=RFi62mx6OrNqIsHqO3fVMbwPlOLQPsb2qxLNPgkBMY+QS8UHV66BODBzxlb39r7yZJE6fD4hxOmA3OujeYwj89VLoGnkd2TqFqEbks8pLkzsYcMJ3uKGiUEeacV3OXhi1aJ6S5bvfu+bD4imfBETiYURrTfKppMgRoUWcsEb5nM= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1573650460542459.3719359583388; Wed, 13 Nov 2019 05:07:40 -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-37-4Y3rfF3zOpKbl3vjyBOYdg-1; Wed, 13 Nov 2019 08:07:33 -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 6C38B107ACE4; Wed, 13 Nov 2019 13:07:26 +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 402355DA7C; Wed, 13 Nov 2019 13:07:26 +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 F2A011832DF1; Wed, 13 Nov 2019 13:07:25 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xADD7G84007078 for ; Wed, 13 Nov 2019 08:07:16 -0500 Received: by smtp.corp.redhat.com (Postfix) id F3D0560CCC; Wed, 13 Nov 2019 13:07:15 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7D23560BE0 for ; Wed, 13 Nov 2019 13:07:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573650458; 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=PA0krRx2dmcDBiyKNec8ShfigmBBREcmj5T7d6h0mr4=; b=dKODOTCDwPdEwR2mKIegZdwtFTbU7Rad7wbI+jOyyeV+4KHPts437YvrlEA3rip20Krnx4 ULK4ALKgkGB0mfvIvOk84JLTZLNnCuG610s1AKFdVTNhL+JeO2/dmMzAXtlbhZBlK6zwBa y8Hos/r74lt7U95vB8AEq9Z1dEboLr0= From: Peter Krempa To: libvir-list@redhat.com Date: Wed, 13 Nov 2019 14:07:04 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 3/8] qemu: tpm: Use g_autofree in qemuTPMEmulatorGetPid 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 X-MC-Unique: 4Y3rfF3zOpKbl3vjyBOYdg-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa --- src/qemu/qemu_tpm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_tpm.c b/src/qemu/qemu_tpm.c index 62b9f803bd..40136c4410 100644 --- a/src/qemu/qemu_tpm.c +++ b/src/qemu/qemu_tpm.c @@ -277,15 +277,13 @@ qemuTPMEmulatorGetPid(const char *swtpmStateDir, { int ret; g_autofree char *swtpm =3D virTPMGetSwtpm(); - char *pidfile =3D qemuTPMEmulatorCreatePidFilename(swtpmStateDir, - shortName); + g_autofree char *pidfile =3D qemuTPMEmulatorCreatePidFilename(swtpmSta= teDir, + shortName); if (!pidfile) return -ENOMEM; ret =3D virPidFileReadPathIfAlive(pidfile, pid, swtpm); - VIR_FREE(pidfile); - return ret; } --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list