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:
Michal Privoznik 2015-08-18 20:40:56 +02:00
parent 32c6b1908b
commit ed4da64657

View File

@ -19943,7 +19943,7 @@ static int qemuDomainRename(virDomainPtr dom,
if (STREQ(vm->def->name, new_name)) {
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
_("Can't rename domain to itself"));
goto cleanup;
goto endjob;
}
if (VIR_STRDUP(new_dom_name, new_name) < 0)