Re: [PATCH 22/30] util: remove cleanup labels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Monday in 2020, Ryan Gahagan wrote:
From: Barrett Schonefeld <bschoney@xxxxxxxxxx>

- src/util/viruri.c

Signed-off-by: Barrett Schonefeld <bschoney@xxxxxxxxxx>
---
src/util/viruri.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/util/viruri.c b/src/util/viruri.c
index 704e5b2132..d49821451e 100644
--- a/src/util/viruri.c
+++ b/src/util/viruri.c
@@ -241,10 +241,9 @@ virURIFormat(virURIPtr uri)
    ret = (char *)xmlSaveUri(&xmluri);
    if (!ret) {
        virReportOOMError();
-        goto cleanup;
+        return ret;

return NULL;

    }

- cleanup:
    return ret;
}


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux