From: Barrett Schonefeld <bschoney(a)utexas.edu>
- src/util/viruri.c
Signed-off-by: Barrett Schonefeld <bschoney(a)utexas.edu>
---
src/util/viruri.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/util/viruri.c b/src/util/viruri.c
index 11753a0aef..704e5b2132 100644
--- a/src/util/viruri.c
+++ b/src/util/viruri.c
@@ -209,7 +209,7 @@ char *
virURIFormat(virURIPtr uri)
{
xmlURI xmluri;
- char *tmpserver = NULL;
+ g_autofree char *tmpserver = NULL;
char *ret;
memset(&xmluri, 0, sizeof(xmluri));
@@ -245,8 +245,6 @@ virURIFormat(virURIPtr uri)
}
cleanup:
- VIR_FREE(tmpserver);
-
return ret;
}
--
2.29.0