mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: snapshot: Don't leak XML definition if restarting of CPUs fails
In case the snapshot code isn't able to restart CPUs after an external checkpoint we would leak a copy of the domains XML definition. This patch fixes the cleanup path.
This commit is contained in:
parent
07b64de505
commit
d5b2828763
@ -11494,7 +11494,8 @@ endjob:
|
|||||||
_("resuming after snapshot failed"));
|
_("resuming after snapshot failed"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
ret = -1;
|
||||||
|
goto cleanup;
|
||||||
}
|
}
|
||||||
if (vm && thaw != 0 &&
|
if (vm && thaw != 0 &&
|
||||||
qemuDomainSnapshotFSThaw(driver, vm, thaw > 0) < 0) {
|
qemuDomainSnapshotFSThaw(driver, vm, thaw > 0) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user