Signed-off-by: Daniel Henrique Barboza <danielhb413(a)gmail.com>
---
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