From nobody Mon Feb 9 19:07:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.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=1576750039; cv=none; d=zohomail.com; s=zohoarc; b=L76IQhlwDZ/Nvqiu4+CRZAktFk7x0xMwmvC7crWeGqNDzj1ya4VqA7+3vuwWgOZ/10RA/xoZmwynVUqNXPgFrfbjMIFWKGy8UHfn4v5o9gUwM0h8kLwgy2HqnXA/iKs9j2yTC3KkLWNkFcPqadox+IOwct6/9qZYU4scX/qAzvk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576750039; 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=1A/HONuOK0dzykCEK5maHX3hSxG+uvwUKx0Uoc3Bvzw=; b=nt4YWzphx3KP1YTzpu6UUcUxzwsB55P86QD1VN953SRfLp/OxuSUzaW829cf4sc45bfD5xIcTj8qudygkBaAS83VEV8iLWn2fLauFTx4E4RkR+/emkurSnw/ncP5rDn2pPCX/nmhLMW02GZ9nOh/6wkc/qXyTsqPRYgMg0MyFWs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.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 [205.139.110.120]) by mx.zohomail.com with SMTPS id 1576750039969124.47076200295521; Thu, 19 Dec 2019 02:07:19 -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-253-NGN8wp4cN52vd2qtogqOZQ-1; Thu, 19 Dec 2019 05:06:07 -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 76CE1801E78; Thu, 19 Dec 2019 10:05:59 +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 452A91001281; Thu, 19 Dec 2019 10:05:59 +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 D1F6B827E6; Thu, 19 Dec 2019 10:05:58 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBJA5Zf5011106 for ; Thu, 19 Dec 2019 05:05:35 -0500 Received: by smtp.corp.redhat.com (Postfix) id 3A8E926DF9; Thu, 19 Dec 2019 10:05:35 +0000 (UTC) Received: from laerte.redhat.com (unknown [10.43.2.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8E90D26E4E; Thu, 19 Dec 2019 10:05:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576750038; 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=1A/HONuOK0dzykCEK5maHX3hSxG+uvwUKx0Uoc3Bvzw=; b=eP6Lx9hYQifWJC8LuKhku6ZBFhGYYsnWqsW5wfwt3ota5Gmm8k7JXQ01cddkNFobVYdPp2 ji2gO24OFcGwNOLAo4Sm+6DyKh5HHrV1/1NQ4r7CF1NXV2Ay4VUzdh9kVZocHmd4pbHoYs ImRb+g597wY9Xm4KnbKWMUkG5yaCxjw= From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Thu, 19 Dec 2019 11:04:37 +0100 Message-Id: <20191219100447.210836-33-fidencio@redhat.com> In-Reply-To: <20191219100447.210836-1-fidencio@redhat.com> References: <20191219100447.210836-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [PATCH 32/42] logging: Use g_autofree on virLogManagerDaemonPath() 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 X-MC-Unique: NGN8wp4cN52vd2qtogqOZQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: J=C3=A1n Tomko --- src/logging/log_manager.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/logging/log_manager.c b/src/logging/log_manager.c index e191093272..7a4f036240 100644 --- a/src/logging/log_manager.c +++ b/src/logging/log_manager.c @@ -47,14 +47,12 @@ virLogManagerDaemonPath(bool privileged) if (privileged) { path =3D g_strdup(RUNSTATEDIR "/libvirt/virtlogd-sock"); } else { - char *rundir =3D NULL; + g_autofree char *rundir =3D NULL; =20 if (!(rundir =3D virGetUserRuntimeDirectory())) return NULL; =20 path =3D g_strdup_printf("%s/virtlogd-sock", rundir); - - VIR_FREE(rundir); } return path; } --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list