mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu_migration_params.c: use g_autofree in qemuMigrationParamsApply()
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
769de4695b
commit
b75ff9a194
@ -836,8 +836,8 @@ qemuMigrationParamsApply(virQEMUDriverPtr driver,
|
|||||||
{
|
{
|
||||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||||
bool xbzrleCacheSize_old = false;
|
bool xbzrleCacheSize_old = false;
|
||||||
virJSONValuePtr params = NULL;
|
g_autoptr(virJSONValue) params = NULL;
|
||||||
virJSONValuePtr caps = NULL;
|
g_autoptr(virJSONValue) caps = NULL;
|
||||||
qemuMigrationParam xbzrle = QEMU_MIGRATION_PARAM_XBZRLE_CACHE_SIZE;
|
qemuMigrationParam xbzrle = QEMU_MIGRATION_PARAM_XBZRLE_CACHE_SIZE;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
int rc;
|
int rc;
|
||||||
@ -896,9 +896,6 @@ qemuMigrationParamsApply(virQEMUDriverPtr driver,
|
|||||||
if (xbzrleCacheSize_old)
|
if (xbzrleCacheSize_old)
|
||||||
migParams->params[xbzrle].set = true;
|
migParams->params[xbzrle].set = true;
|
||||||
|
|
||||||
virJSONValueFree(params);
|
|
||||||
virJSONValueFree(caps);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user