mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
qemuDomainRename: Don't leave a domain locked uppon fail
Well, yet again one case of 'goto cleanup' while 'goto endjob' was needed. Sorry. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
32c6b1908b
commit
ed4da64657
@ -19943,7 +19943,7 @@ static int qemuDomainRename(virDomainPtr dom,
|
|||||||
if (STREQ(vm->def->name, new_name)) {
|
if (STREQ(vm->def->name, new_name)) {
|
||||||
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
||||||
_("Can't rename domain to itself"));
|
_("Can't rename domain to itself"));
|
||||||
goto cleanup;
|
goto endjob;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (VIR_STRDUP(new_dom_name, new_name) < 0)
|
if (VIR_STRDUP(new_dom_name, new_name) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user