mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
openvzDomainMigratePrepare3Params: use g_auto
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
674b961d77
commit
e15244a3c1
@ -2067,9 +2067,9 @@ openvzDomainMigratePrepare3Params(virConnectPtr dconn,
|
||||
const char *uri_in = NULL;
|
||||
virDomainDefPtr def = NULL;
|
||||
virDomainObjPtr vm = NULL;
|
||||
char *my_hostname = NULL;
|
||||
g_autofree char *my_hostname = NULL;
|
||||
const char *hostname = NULL;
|
||||
virURIPtr uri = NULL;
|
||||
g_autoptr(virURI) uri = NULL;
|
||||
int ret = -1;
|
||||
|
||||
if (virTypedParamsValidate(params, nparams, OPENVZ_MIGRATION_PARAMETERS) < 0)
|
||||
@ -2146,8 +2146,6 @@ openvzDomainMigratePrepare3Params(virConnectPtr dconn,
|
||||
virDomainObjListRemove(driver->domains, vm);
|
||||
|
||||
done:
|
||||
VIR_FREE(my_hostname);
|
||||
virURIFree(uri);
|
||||
virDomainObjEndAPI(&vm);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user