mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 07:36:19 +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,
|
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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user