From nobody Mon Feb 9 00:30:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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 (zoho.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=1571925430; cv=none; d=zoho.com; s=zohoarc; b=AQDJIC0bhoNiGiUZFQjTzLdI3rnidvYVuo9dxO6H7ijxZoIsRozrGMDyshILvUBJ8ulS5WEz871rqiAWBU6lxJQbM70ZKjAc/n2UX4uFIXXmCazwLm4wSrv2q0sp9MiQQwhkvVQ8TVnr40s/e+o91V00f3E+/HZV2xWPiGN2ecg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571925430; h=Content-Type:Content-Transfer-Encoding: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=rmmldVrFJs8n1qQ9wNXySVcvwjpaQjvdlf2OO+uLD6Q=; b=eyL3JzNNYtN3qkZr1LdqRxb22nHwUH0N6FtpPA0DGxdhuLUHh6YIAmu/S256S1M327BYtlc+DLAuK00sy0HH/+5lqaN1n7lU3RTM8keM4cjIBelVnuFHqDrQzwK26p8LSY8kKImlxtebj46RXqWhNKhxYvv6+bSZZfmNeI7MiCc= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.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 1571925430168841.3228926448631; Thu, 24 Oct 2019 06:57:10 -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-138-4M3usMnFOhe5EhG720yvFg-1; Thu, 24 Oct 2019 09:57:04 -0400 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 D715C107AD33; Thu, 24 Oct 2019 13:56:57 +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 B058F5C1D4; Thu, 24 Oct 2019 13:56:57 +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 6ED5E4E9F5; Thu, 24 Oct 2019 13:56:57 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9ODug05026288 for ; Thu, 24 Oct 2019 09:56:42 -0400 Received: by smtp.corp.redhat.com (Postfix) id BC1491000232; Thu, 24 Oct 2019 13:56:42 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.229]) by smtp.corp.redhat.com (Postfix) with ESMTP id 45BCE10027A9 for ; Thu, 24 Oct 2019 13:56:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571925428; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=rmmldVrFJs8n1qQ9wNXySVcvwjpaQjvdlf2OO+uLD6Q=; b=gjqo/s11Y6Mbd67P6mMsbFtvpSowd/GOptyoo9gL+RwNi17wsGt24K8q5snHblIa8WWiJt wFakmBkWC7lwXZwPedoK+LvollKN5rczi4Tiq0eUOwZNu4KBklOkX350znDWYh8gklFH8O pNJI3asGptD0noa6kt2ucCKv4PHnPwk= From: Peter Krempa To: libvir-list@redhat.com Date: Thu, 24 Oct 2019 15:56:20 +0200 Message-Id: <1cc6a0370d383ae133558c0034545a1adb07c08f.1571925291.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 02/19] util: buffer: Use 'cleanup' as label name in virBufferAddBuffer 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: 4M3usMnFOhe5EhG720yvFg-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- src/util/virbuffer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/virbuffer.c b/src/util/virbuffer.c index a58481430a..a2b5aa8508 100644 --- a/src/util/virbuffer.c +++ b/src/util/virbuffer.c @@ -201,22 +201,22 @@ virBufferAddBuffer(virBufferPtr buf, virBufferPtr toa= dd) return; if (!buf) - goto done; + goto cleanup; if (buf->error || toadd->error) { if (!buf->error) virBufferSetError(buf, toadd->error); - goto done; + goto cleanup; } if (virBufferGrow(buf, toadd->use) < 0) - goto done; + goto cleanup; memcpy(&buf->content[buf->use], toadd->content, toadd->use); buf->use +=3D toadd->use; buf->content[buf->use] =3D '\0'; - done: + cleanup: virBufferFreeAndReset(toadd); } --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list