]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix leak of remote driver if final 'CLOSE' RPC call fails
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 8 Jul 2011 11:41:06 +0000 (12:41 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 8 Jul 2011 15:19:57 +0000 (16:19 +0100)
commitafe8839f011c8c54c429f33ca0e6515fceb4e0fd
tree75a2a80a5bd766a3a6c0eda0d0d494ccddaef071
parent2c85644b0b51fbe5b6244e6773531af29933a727
Fix leak of remote driver if final 'CLOSE' RPC call fails

When closing a remote connection we issue a (fairly pointless)
'CLOSE' RPC call to the daemon. If this fails we skip all the
cleanup of private data, but the virConnectPtr object still
gets released as normal. This causes a memory leak. Since the
CLOSE RPC call is pretty pointless, just carry on freeing the
remote driver if it fails.

* src/remote/remote_driver.c: Ignore failure to issue CLOSE
  RPC call
src/remote/remote_driver.c