提交 379efa10 编写于 作者: M Matthias Bolte

xenapi: Fix double-freeing the session in xenapiClose

xen_session_logout already frees the whole session object.
Don't call xenSessionFree on a freed session object.

Reported by Sharmila Radhakrishnan.
上级 6b01c83a
......@@ -230,7 +230,7 @@ xenapiClose (virConnectPtr conn)
if (priv->session != NULL) {
xen_session_logout(priv->session);
xenSessionFree(priv->session);
priv->session = NULL;
}
VIR_FREE(priv->url);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册