From nobody Fri May 3 00:56:38 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1628766826; cv=none; d=zohomail.com; s=zohoarc; b=Zd9X9NYaXubm74exTyM00huO3Zp5V+5aI+byMtzr/+GXPYOi7OCA/HVLDoY2L1lCzBgdXPuWJPCGBSdlSwWKivVYHr4whWr1UCkkgKbVHiQDP/ySN2Lhws+ygRjpNchgfv3tiJfu1Lw7fX7FDDXBYQjdyciCnBak0JqG2MkgEbs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628766826; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=aCSZxS+AOZ0VwlDm3yjyG+MuFCzBACFyVYqFLqZPYUI=; b=asyyZV3C3L3ylMUD0r9jckyOAsAVmE56WiP6BQZ+3OSOU7f42Q1TbD+51OZFtlicYj6UHl+pL809lWx7xpzHYp/fZEZ4b1yaKnV8k7UtI3Z6k3BzPMn+R1P2qX7bzu5jnr9WJKsCVWBh1Iz+ID7aUMZ0K6F5HF+j1W4Yoeoijmc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1628766826119244.0559977968594; Thu, 12 Aug 2021 04:13:46 -0700 (PDT) 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-327-0ul_HPceN3qFUGGqs0612g-1; Thu, 12 Aug 2021 07:13:43 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 19B8F801B3C; Thu, 12 Aug 2021 11:13:38 +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 F06D6620DE; Thu, 12 Aug 2021 11:13:37 +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 79FDC4BB7C; Thu, 12 Aug 2021 11:13:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 17CBCMRO018258 for ; Thu, 12 Aug 2021 07:12:22 -0400 Received: by smtp.corp.redhat.com (Postfix) id 292395DA61; Thu, 12 Aug 2021 11:12:22 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.43.2.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id A61435D9D5 for ; Thu, 12 Aug 2021 11:12:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628766825; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=aCSZxS+AOZ0VwlDm3yjyG+MuFCzBACFyVYqFLqZPYUI=; b=OQrjjNawIqgYakXWz8sO3CQUpGC/PcEjQi6FqwRoiWZdhwWfaK32GJXnI82y+yLAxWv9+c pQ5fbwmBpOJLPa+Fq47IvQ+M48IA4D6AWrX3Td8GbBcZbi750x4+brzSyA4xFGcj1QhJRx 1bdTZC2CMUY9T87dSCwOKPIM1fmVeso= X-MC-Unique: 0ul_HPceN3qFUGGqs0612g-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH] vsh: steal pointer in vshEditWriteToTempFile Date: Thu, 12 Aug 2021 13:12:08 +0200 Message-Id: <4de7ccc4d87d3fee4a453a4fa89c81c82c1c643f.1628766716.git.jtomko@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com 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.11 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1628766828054100001 Fixes: 13896b5ad1d7f157273b6e49106df1f33958a9ed Signed-off-by: J=C3=A1n Tomko --- Pushed as trivial. Ears of shame were applied. tools/vsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/vsh.c b/tools/vsh.c index f9600bafba..96b3ced0ca 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -2377,7 +2377,7 @@ vshEditWriteToTempFile(vshControl *ctl, const char *d= oc) } =20 /* Temporary filename: caller frees. */ - return ret; + return g_steal_pointer(&ret); } =20 /* Characters permitted in $EDITOR environment variable and temp filename.= */ --=20 2.31.1