diff options
author | 2011-07-21 18:11:20 +0200 | |
---|---|---|
committer | 2011-07-22 15:56:42 +0200 | |
commit | 379efa109f9315ac0b5c66c9ec51ff11e45c8699 (patch) | |
tree | fd40f53891fe11647b5b5d76852e9abf3bd11a92 /src/xenapi | |
parent | remote/ssh: optional "keyfile" parameter. (diff) | |
download | libvirt-379efa109f9315ac0b5c66c9ec51ff11e45c8699.tar.gz libvirt-379efa109f9315ac0b5c66c9ec51ff11e45c8699.tar.bz2 libvirt-379efa109f9315ac0b5c66c9ec51ff11e45c8699.zip |
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.
Diffstat (limited to 'src/xenapi')
-rw-r--r-- | src/xenapi/xenapi_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xenapi/xenapi_driver.c b/src/xenapi/xenapi_driver.c index dae7e268c..d40bc3e3d 100644 --- a/src/xenapi/xenapi_driver.c +++ b/src/xenapi/xenapi_driver.c @@ -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); |