mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
qemu: Use autoptr for mig in qemuMigrationDstPrepareFresh
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
62181e8af6
commit
8e0d86fb6a
@ -3299,7 +3299,7 @@ qemuMigrationDstPrepareFresh(virQEMUDriver *driver,
|
||||
virErrorPtr origErr;
|
||||
int ret = -1;
|
||||
qemuDomainObjPrivate *priv = NULL;
|
||||
qemuMigrationCookie *mig = NULL;
|
||||
g_autoptr(qemuMigrationCookie) mig = NULL;
|
||||
g_autofree char *xmlout = NULL;
|
||||
unsigned int cookieFlags = 0;
|
||||
bool taint_hook = false;
|
||||
@ -3451,7 +3451,6 @@ qemuMigrationDstPrepareFresh(virQEMUDriver *driver,
|
||||
qemuDomainRemoveInactive(driver, vm);
|
||||
}
|
||||
virDomainObjEndAPI(&vm);
|
||||
qemuMigrationCookieFree(mig);
|
||||
virErrorRestore(&origErr);
|
||||
return ret;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user