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:
Matthias Bolte 2011-07-21 18:11:20 +02:00
parent 6b01c83a63
commit 379efa109f

View File

@ -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);