qemu: Fix a regression of domain save

* src/qemu/qemu_driver.c - qemuDomainSaveInternal: Return directly
will keep the domain object locked, introduced by 173015bec6.
This commit is contained in:
Osier Yang 2011-09-01 16:11:51 +08:00
parent 9f3e724339
commit 6f2581edd7

View File

@ -2223,7 +2223,7 @@ qemuDomainSaveInternal(struct qemud_driver *driver, virDomainPtr dom,
if (qemuProcessAutoDestroyActive(driver, vm)) { if (qemuProcessAutoDestroyActive(driver, vm)) {
qemuReportError(VIR_ERR_OPERATION_INVALID, qemuReportError(VIR_ERR_OPERATION_INVALID,
"%s", _("domain is marked for auto destroy")); "%s", _("domain is marked for auto destroy"));
return -1; goto cleanup;
} }
memset(&header, 0, sizeof(header)); memset(&header, 0, sizeof(header));