From nobody Tue Feb 10 16:22:39 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=1611937069; cv=none; d=zohomail.com; s=zohoarc; b=h9cuhyQNc2X7VXcXG6udpCYPUYPmdbchOmnsVXCJp1cYPipB8hH1qI89ntp7XY0wk/aeNnlH6AAjWWBD71J/73kb+cAoeo9DF4TsvQ7odkG7R9rBbT4de6D46QZ2MEvaDGB3NfM/9qlURIbGzMsQmugP3a54CuRP2Y+iqYw+k/o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611937069; h=Content-Type:Content-Transfer-Encoding:Cc: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=08bYwxb4fp8bxcBc+MUCWWsLpwQkLek4EmUxtZzXB0U=; b=F4/2EQ8Y8pEXFbAg1zY6eLhZ/mUY36RfW8lQ7RY0QUym62tluGBpG4p545HSmZ8SCpebPebpDGGJ75aIgX0VD/IdqbJnjhGKiJCKgWt5BP2K1cz1pZrHWl6oUO+TEeaOiYfITibSNM/LwBv/m8WmknuBRQinx0+FSKobfSzUM+8= 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 1611937069702919.3796548571842; Fri, 29 Jan 2021 08:17:49 -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-214-69_ETk5xPJqxWfhJvcc79g-1; Fri, 29 Jan 2021 11:17:46 -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 79E9FCC656; Fri, 29 Jan 2021 16:17:40 +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 5887E5D9C9; Fri, 29 Jan 2021 16:17:40 +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 1F36850045; Fri, 29 Jan 2021 16:17:40 +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 10TGHTHl010724 for ; Fri, 29 Jan 2021 11:17:29 -0500 Received: by smtp.corp.redhat.com (Postfix) id A2FF460CD0; Fri, 29 Jan 2021 16:17:29 +0000 (UTC) Received: from work.redhat.com (ovpn-113-143.ams2.redhat.com [10.36.113.143]) by smtp.corp.redhat.com (Postfix) with ESMTP id D416C6F98B; Fri, 29 Jan 2021 16:17:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611937068; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=08bYwxb4fp8bxcBc+MUCWWsLpwQkLek4EmUxtZzXB0U=; b=PCMu7RoU41rBA9eIyGp10LSawIdK1LLk0U+54WNN2mYOAjSGdlEWFU70/VkEkfZOTLo22B IicbbeZd/S9dt3wFzuMgAQ6ToBO7ImrMi6rvq01iXgN8motlOQV4YBkCe3tRJ3K2H4mhLC FrEzu/Hkp5N2pwzYaLAuEjDhr1klgI4= X-MC-Unique: 69_ETk5xPJqxWfhJvcc79g-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 18/19] commandhelper: Convert printCwd to g_auto* Date: Fri, 29 Jan 2021 17:16:28 +0100 Message-Id: <20210129161629.604823-19-twiederh@redhat.com> In-Reply-To: <20210129161629.604823-1-twiederh@redhat.com> References: <20210129161629.604823-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake 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: Tim Wiederhake --- tests/commandhelper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/commandhelper.c b/tests/commandhelper.c index 26a7de5149..3bd7d2b28d 100644 --- a/tests/commandhelper.c +++ b/tests/commandhelper.c @@ -172,7 +172,7 @@ static void printDaemonization(FILE *log, struct Argume= nts *args) =20 static int printCwd(FILE *log) { - char *cwd =3D NULL; + g_autofree char *cwd =3D NULL; char *display; =20 if (!(cwd =3D getcwd(NULL, 0))) @@ -191,7 +191,6 @@ static int printCwd(FILE *log) # endif =20 fprintf(log, "CWD:%s\n", display); - free(cwd); return 0; } =20 --=20 2.26.2