mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
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:
parent
731c911ceb
commit
637a1124ae
@ -4449,6 +4449,7 @@ qemuBuildCommandLine(virConnectPtr conn,
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("the QEMU binary %s does not support kqemu"),
|
||||
emulator);
|
||||
goto error;
|
||||
}
|
||||
break;
|
||||
|
||||
@ -4462,6 +4463,7 @@ qemuBuildCommandLine(virConnectPtr conn,
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("the QEMU binary %s does not support kvm"),
|
||||
emulator);
|
||||
goto error;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user