mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
openvz: use g_auto in openvzDomainMigratePerform3Params
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c5ae8135df
commit
7cd718cca5
@ -2113,8 +2113,8 @@ openvzDomainMigratePerform3Params(virDomainPtr domain,
|
||||
struct openvz_driver *driver = domain->conn->privateData;
|
||||
virDomainObj *vm = NULL;
|
||||
const char *uri_str = NULL;
|
||||
virURI *uri = NULL;
|
||||
virCommand *cmd = NULL;
|
||||
g_autoptr(virURI) uri = NULL;
|
||||
g_autoptr(virCommand) cmd = NULL;
|
||||
int ret = -1;
|
||||
|
||||
virCheckFlags(OPENVZ_MIGRATION_FLAGS, -1);
|
||||
@ -2146,8 +2146,6 @@ openvzDomainMigratePerform3Params(virDomainPtr domain,
|
||||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
virCommandFree(cmd);
|
||||
virURIFree(uri);
|
||||
virDomainObjEndAPI(&vm);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user