mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
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
Block a user