mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
Call xenDeamonClose if ping test fails during open call, to ensure any resources are freed up
This commit is contained in:
parent
1213bedf6d
commit
d9bfbfa949
@ -1673,6 +1673,7 @@ xenDaemonOpen(virConnectPtr conn, const char *name, int flags)
|
||||
/* A sort of "ping" to make sure the daemon is actually
|
||||
alive & well, rather than just assuming it is */
|
||||
if ((ret = xenDaemonGetVersion(conn, &version)) < 0) {
|
||||
xenDaemonClose(conn);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user