mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
hyperv: abort() failure of wsmc_fault_new()
The function just allocates a helper object. Reporting errors would be pointless when we encounter OOM situation. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
dda78f0b62
commit
695d469238
@ -92,12 +92,8 @@ hypervVerifyResponse(WsManClient *client, WsXmlDocH response,
|
||||
}
|
||||
|
||||
if (wsmc_check_for_fault(response)) {
|
||||
fault = wsmc_fault_new();
|
||||
|
||||
if (fault == NULL) {
|
||||
virReportOOMError();
|
||||
return -1;
|
||||
}
|
||||
if (!(fault = wsmc_fault_new()))
|
||||
abort();
|
||||
|
||||
wsmc_get_fault_data(response, fault);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user