From nobody Mon Feb 9 17:57:41 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=1576750090; cv=none; d=zohomail.com; s=zohoarc; b=n5DdfP9J2yYR1ITomI7G+bdIUejxXwLuPbc4L2uAKKSEJDrsY4D859s8Jb+oJU/vD+yEQYdpMij6Fc0DQ+9DQ7wlvhQ2tyEslEij2nw/BXMhdHVAY97IOfKsiDvKmjC28jsB7ByBtIY1YxU3CQxXf/zz9lIj1ehYF4e/uUT8Ljc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576750090; 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=Rh15ZNDW1fDtLztigQjkdd5cYJbf6J8NNKP6+IibKKQ=; b=Xnx7fc/1sbdcoSINET7iwj3rYprd/jwztHXytXydLVEOSCRX8nWo/Sp6SM25EWpFWpzJyV15J8+Gi4dXqzr82HeEYy8YsoquOMM8akH2DXaDrCUwlZvrnTtU9UZagBdJfGzZJdY9tchC/+THb+PQqVZeSHIb9/XGqcX7D0d9r6w= 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 157675009088294.58082536573659; Thu, 19 Dec 2019 02:08:10 -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-297-37VtGpiAP3WFc4R5SXluZA-1; Thu, 19 Dec 2019 05:05:53 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8D373100726D; Thu, 19 Dec 2019 10:05:47 +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 660945C54A; Thu, 19 Dec 2019 10:05:47 +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 1EF0B18037CD; Thu, 19 Dec 2019 10:05:47 +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 xBJA5K19010986 for ; Thu, 19 Dec 2019 05:05:20 -0500 Received: by smtp.corp.redhat.com (Postfix) id 6D11526E48; Thu, 19 Dec 2019 10:05:20 +0000 (UTC) Received: from laerte.redhat.com (unknown [10.43.2.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id BF8D326DF9; Thu, 19 Dec 2019 10:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576750089; 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=Rh15ZNDW1fDtLztigQjkdd5cYJbf6J8NNKP6+IibKKQ=; b=FTvXF8X+y3AXAbAPGNPh2PZz6tzKNesoKt3pKjgsieeqYzvrjDt0s7AmO0tXhLSG/3UZA2 eRQW4OMeB8fF7OPJIs5YH0QyHoPbc7mh1w080CBpSBPeAouoP5+2T1BKZ0RztopgO4TxVE rGF31XALCr0q66XTebdqsRpe4wa37NU= From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Thu, 19 Dec 2019 11:04:27 +0100 Message-Id: <20191219100447.210836-23-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 22/42] locking: Use g_autofree on virLockDaemonConfigFilePath() 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.16 X-MC-Unique: 37VtGpiAP3WFc4R5SXluZA-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/locking/lock_daemon_config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/locking/lock_daemon_config.c b/src/locking/lock_daemon_con= fig.c index d7e13013d7..62df30d9f4 100644 --- a/src/locking/lock_daemon_config.c +++ b/src/locking/lock_daemon_config.c @@ -41,13 +41,12 @@ virLockDaemonConfigFilePath(bool privileged, char **con= figfile) if (privileged) { *configfile =3D g_strdup(SYSCONFDIR "/libvirt/virtlockd.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/virtlockd.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