mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
util: uri: convert pointers to use g_autofree
Signed-off-by: Barrett Schonefeld <bschoney@utexas.edu> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
344415a306
commit
47cd3d9298
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user