提交 d9bfbfa9 编写于 作者: D Daniel P. Berrange

Call xenDeamonClose if ping test fails during open call, to ensure any resources are freed up

上级 1213bedf
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册