From nobody Tue Feb 10 21:59:55 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=1576750146; cv=none; d=zohomail.com; s=zohoarc; b=ZloBYY+OMcfGfBNOaPZE033hkjpeW5cZc15Nd5lJH+MFC0eFgYqlnQ2V7GNn7Qao3Ol7/5GC5bLzvkLVb8Hf5vqdXsQ5PD/qtQwsb4Jb4+JrEXbazZlDU2BlGPQyQF4XP5AIApAXMqCt2hIPYQOUfbhOXlh1a1u0TKJR1y0HqXc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576750146; 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=YNR52rAmqRWrG1J7ExtUZCRbi4/0YcNHv5gaH0AFY+Y=; b=nuzNEI0r+IJHtOWEmpHTNzrBxhDpAXsDKgx/8bCHly5xdtXCJt557zDUFojK6DkZm/kcan/HlbGbcjmWKqshctR/jAuk5KNWoLYszcbD1jPtgAqKpwEPu6iYQepJO7dypCOq8rkrWPskr21nrRgC1IYS+dl+EMoTu2dEbfgZlO8= 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-1.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1576750146269902.1185360639446; Thu, 19 Dec 2019 02:09:06 -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-41-zqn-qJUDPoi_3CC0OUO5Lw-1; Thu, 19 Dec 2019 05:06:22 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0872EDB8D; Thu, 19 Dec 2019 10:06:17 +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 808F16B570; Thu, 19 Dec 2019 10:06:16 +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 31BDF827F3; Thu, 19 Dec 2019 10:06:16 +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 xBJA5xCs011340 for ; Thu, 19 Dec 2019 05:05:59 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0080026E5F; Thu, 19 Dec 2019 10:05:59 +0000 (UTC) Received: from laerte.redhat.com (unknown [10.43.2.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id F077026E5E; Thu, 19 Dec 2019 10:05:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576750145; 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=YNR52rAmqRWrG1J7ExtUZCRbi4/0YcNHv5gaH0AFY+Y=; b=VEFhra10lAABsPzqnllV0deaMXghMsa8Dkkz+KK8B8dUh8AgNMB60QuoM4828164vhwbQe 157wSvKtpKKrO9w2RTS0GEcUrElfYtVz+53iFXZXK/YeMH4DmAkU3LUfUfxOn4blnX7vXY GQFZJHkqxgKcTALHiweKKyMIeRDEHQc= From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Thu, 19 Dec 2019 11:04:46 +0100 Message-Id: <20191219100447.210836-42-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 41/42] admin: Use g_autofree on getSocketPath() 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.15 X-MC-Unique: zqn-qJUDPoi_3CC0OUO5Lw-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 --- src/admin/libvirt-admin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/admin/libvirt-admin.c b/src/admin/libvirt-admin.c index f156736d9f..d0c191a56a 100644 --- a/src/admin/libvirt-admin.c +++ b/src/admin/libvirt-admin.c @@ -99,7 +99,7 @@ virAdmInitialize(void) static char * getSocketPath(virURIPtr uri) { - char *rundir =3D virGetUserRuntimeDirectory(); + g_autofree char *rundir =3D virGetUserRuntimeDirectory(); char *sock_path =3D NULL; size_t i =3D 0; =20 @@ -160,7 +160,6 @@ getSocketPath(virURIPtr uri) } =20 cleanup: - VIR_FREE(rundir); return sock_path; =20 error: --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list