mirror of https://gitee.com/openkylin/libvirt.git
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.
This commit is contained in:
parent
6b01c83a63
commit
379efa109f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue