[PATCH 1/1] admin_server: use VIR_AUTOFREE() in adminClientGetInfo string

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

 



Signed-off-by: Daniel Henrique Barboza <danielhb413@xxxxxxxxx>
---

Trivial change. Found it while reviewing a patch from
Daniel yesterday. Didn't found any other instances
in this file that can VIR_AUTO*.


 src/admin/admin_server.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/admin/admin_server.c b/src/admin/admin_server.c
index 0d6091937d..dc67dd044f 100644
--- a/src/admin/admin_server.c
+++ b/src/admin/admin_server.c
@@ -218,7 +218,7 @@ adminClientGetInfo(virNetServerClientPtr client,
     int ret = -1;
     int maxparams = 0;
     bool readonly;
-    char *sock_addr = NULL;
+    VIR_AUTOFREE(char *) sock_addr = NULL;
     const char *attr = NULL;
     virTypedParameterPtr tmpparams = NULL;
     virIdentityPtr identity = NULL;
@@ -313,7 +313,6 @@ adminClientGetInfo(virNetServerClientPtr client,
     if (tmpparams)
         virTypedParamsFree(tmpparams, *nparams);
     virObjectUnref(identity);
-    VIR_FREE(sock_addr);
     return ret;
 }
 
-- 
2.21.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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