mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05: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:
1 parent
6b01c83a63
commit
379efa109f
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user