From ff06e8340751e965c3415436c0d0668bef86b7e8 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 24 Oct 2019 08:10:18 +0200 Subject: [PATCH] util: buffer: Use 'cleanup' as label name in virBufferAddBuffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Krempa Reviewed-by: Ján 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 toadd) 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 += toadd->use; buf->content[buf->use] = '\0'; - done: + cleanup: virBufferFreeAndReset(toadd); } -- GitLab