From nobody Mon Feb 9 19:08:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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=1576750032; cv=none; d=zohomail.com; s=zohoarc; b=k1sGxlleIAaFjQsKx8LjDsYaJA6OWVpbUM/5AYMUECjEiv47yUzum8syDe3VBzO6av2nPawN/+iWtUagt9J1v4onjnlEqBGq2dVteZlqsYItFg2/aSEklYSDgBtid9tYqI4/feXulqu5ct4FhTaUB5qWFnOx7r68JU7OWvne7go= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576750032; 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=hga7+I9MSEA5+5aWqE3BIv/mJHQvw5bDARaMXEZiNCc=; b=HfioDbxXLYq79hT4da1BYxfbfZ9i6tXpYcfD3n5FlIwsjNVxd/vvTfPHR7JKGV/SDxnQOxkqnASLqzJPoAZJaE3pzATU6yWXVkpuNT6F1wqLFYHXqxIy7pP5D2YQtLKDTxThaaVNZfcOtevPToa6R3AA3KwwkzLzU4M1XPaIMyw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1576750032238121.62140933993771; Thu, 19 Dec 2019 02:07:12 -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-13-Rp0X7hYvNvOl4u01H1Odqw-1; Thu, 19 Dec 2019 05:05:50 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C8FE380058C; Thu, 19 Dec 2019 10:05:43 +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 9C56E60F89; Thu, 19 Dec 2019 10:05:43 +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 4BA85827FF; Thu, 19 Dec 2019 10:05:43 +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 xBJA5Iv5010968 for ; Thu, 19 Dec 2019 05:05:18 -0500 Received: by smtp.corp.redhat.com (Postfix) id 7558926E48; Thu, 19 Dec 2019 10:05:18 +0000 (UTC) Received: from laerte.redhat.com (unknown [10.43.2.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id C904F26DF9; Thu, 19 Dec 2019 10:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576750030; 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=hga7+I9MSEA5+5aWqE3BIv/mJHQvw5bDARaMXEZiNCc=; b=KQEEusLYrrefUEzvDspOZTVhR8T9TsuiWUpSwkM51Px8ElF257m11HCH4JBQdXa+yHraJB ogzUOSMt7ecIVlF8TFM/YQM7gHU3Ab+sDOCl2lrMh46GxOAo4ANw4VyKu7FDeOT0O0fY8q M/DTGhPpN91PQNKIsPs5WjKLQ/+dKJI= From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Thu, 19 Dec 2019 11:04:25 +0100 Message-Id: <20191219100447.210836-21-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 20/42] logging: Use g_autofree on virLogDaemonConfigFilePath() 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.12 X-MC-Unique: Rp0X7hYvNvOl4u01H1Odqw-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_daemon_config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/logging/log_daemon_config.c b/src/logging/log_daemon_confi= g.c index 0cf9729e7f..ab42921140 100644 --- a/src/logging/log_daemon_config.c +++ b/src/logging/log_daemon_config.c @@ -42,13 +42,12 @@ virLogDaemonConfigFilePath(bool privileged, char **conf= igfile) if (privileged) { *configfile =3D g_strdup(SYSCONFDIR "/libvirt/virtlogd.conf"); } else { - char *configdir =3D NULL; + g_autofree char *configdir =3D NULL; =20 if (!(configdir =3D virGetUserConfigDirectory())) goto error; =20 *configfile =3D g_strdup_printf("%s/virtlogd.conf", configdir); - VIR_FREE(configdir); } =20 return 0; --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list