提交 b97befb6 编写于 作者: M Matthias Bolte

xenapi: Don't leak url and caps in case of error

上级 2969eff8
...@@ -173,9 +173,12 @@ xenapiOpen (virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUS ...@@ -173,9 +173,12 @@ xenapiOpen (virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUS
VIR_FREE(password); VIR_FREE(password);
if (privP != NULL) { if (privP != NULL) {
virCapabilitiesFree(privP->caps);
if (privP->session != NULL) if (privP->session != NULL)
xenSessionFree(privP->session); xenSessionFree(privP->session);
VIR_FREE(privP->url);
VIR_FREE(privP); VIR_FREE(privP);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册