[PATCH 22/30] util: remove cleanup labels

Ryan Gahagan rgahagan at cs.utexas.edu
Mon Nov 23 22:09:43 UTC 2020


From: Barrett Schonefeld <bschoney at utexas.edu>

- src/util/viruri.c

Signed-off-by: Barrett Schonefeld <bschoney at utexas.edu>
---
 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;
     }
 
- cleanup:
     return ret;
 }
 
-- 
2.29.0




More information about the libvir-list mailing list