Add missing 'goto error' in QEMU command line building

If reporting case of a binary not supporting KVM or kQEMU, libvirt
forgot to jump to the error branch for cleanup
This commit is contained in:
Daniel P. Berrange 2012-09-11 14:44:40 +01:00
parent 731c911ceb
commit 637a1124ae

View File

@ -4449,6 +4449,7 @@ qemuBuildCommandLine(virConnectPtr conn,
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("the QEMU binary %s does not support kqemu"), _("the QEMU binary %s does not support kqemu"),
emulator); emulator);
goto error;
} }
break; break;
@ -4462,6 +4463,7 @@ qemuBuildCommandLine(virConnectPtr conn,
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("the QEMU binary %s does not support kvm"), _("the QEMU binary %s does not support kvm"),
emulator); emulator);
goto error;
} }
break; break;