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:
Peter Krempa 2012-12-11 11:59:58 +01:00
parent 07b64de505
commit d5b2828763

View File

@ -11494,7 +11494,8 @@ endjob:
_("resuming after snapshot failed"));
}
return -1;
ret = -1;
goto cleanup;
}
if (vm && thaw != 0 &&
qemuDomainSnapshotFSThaw(driver, vm, thaw > 0) < 0) {