mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
qemu_driver.c: use g_auto* in qemuDomainMigratePerform3* functions
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c54dba525d
commit
b7d5277deb
@ -12634,7 +12634,7 @@ qemuDomainMigratePerform3(virDomainPtr dom,
|
|||||||
{
|
{
|
||||||
virQEMUDriverPtr driver = dom->conn->privateData;
|
virQEMUDriverPtr driver = dom->conn->privateData;
|
||||||
virDomainObjPtr vm = NULL;
|
virDomainObjPtr vm = NULL;
|
||||||
qemuMigrationParamsPtr migParams = NULL;
|
g_autoptr(qemuMigrationParams) migParams = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
virCheckFlags(QEMU_MIGRATION_FLAGS, -1);
|
virCheckFlags(QEMU_MIGRATION_FLAGS, -1);
|
||||||
@ -12658,7 +12658,6 @@ qemuDomainMigratePerform3(virDomainPtr dom,
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
virDomainObjEndAPI(&vm);
|
virDomainObjEndAPI(&vm);
|
||||||
qemuMigrationParamsFree(migParams);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -12682,10 +12681,10 @@ qemuDomainMigratePerform3Params(virDomainPtr dom,
|
|||||||
const char *graphicsuri = NULL;
|
const char *graphicsuri = NULL;
|
||||||
const char *listenAddress = NULL;
|
const char *listenAddress = NULL;
|
||||||
int nmigrate_disks;
|
int nmigrate_disks;
|
||||||
const char **migrate_disks = NULL;
|
g_autofree const char **migrate_disks = NULL;
|
||||||
unsigned long long bandwidth = 0;
|
unsigned long long bandwidth = 0;
|
||||||
int nbdPort = 0;
|
int nbdPort = 0;
|
||||||
qemuMigrationParamsPtr migParams = NULL;
|
g_autoptr(qemuMigrationParams) migParams = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
virCheckFlags(QEMU_MIGRATION_FLAGS, -1);
|
virCheckFlags(QEMU_MIGRATION_FLAGS, -1);
|
||||||
@ -12743,8 +12742,6 @@ qemuDomainMigratePerform3Params(virDomainPtr dom,
|
|||||||
flags, dname, bandwidth, true);
|
flags, dname, bandwidth, true);
|
||||||
cleanup:
|
cleanup:
|
||||||
virDomainObjEndAPI(&vm);
|
virDomainObjEndAPI(&vm);
|
||||||
qemuMigrationParamsFree(migParams);
|
|
||||||
VIR_FREE(migrate_disks);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user