mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
Call xenDeamonClose if ping test fails during open call, to ensure any resources are freed up
This commit is contained in:
1 parent
1213bedf6d
commit
d9bfbfa949
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user