mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
libxl: Resolve Coverity warnings
Resolve two Coverity issues introduced by commit id '9b8d6e1e' Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
aec0c6d3d5
commit
5ca7c95549
@ -98,8 +98,7 @@ libxlDoMigrateReceive(virNetSocketPtr sock,
|
||||
size_t i;
|
||||
int ret;
|
||||
|
||||
virNetSocketAccept(sock, &client_sock);
|
||||
if (client_sock == NULL) {
|
||||
if (virNetSocketAccept(sock, &client_sock) < 0) {
|
||||
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
|
||||
_("Fail to accept migration connection"));
|
||||
goto cleanup;
|
||||
@ -526,8 +525,7 @@ libxlDomainMigrationFinish(virConnectPtr dconn,
|
||||
cleanup:
|
||||
if (event)
|
||||
libxlDomainEventQueue(driver, event);
|
||||
if (vm)
|
||||
virObjectUnlock(vm);
|
||||
virObjectUnlock(vm);
|
||||
virObjectUnref(cfg);
|
||||
return dom;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user