Re: [libvirt] [PATCH 4/5] Fix leak of remote driver if final 'CLOSE' RPC call fails

2011-07-08 Thread Eric Blake
On 07/08/2011 05:57 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > 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

[libvirt] [PATCH 4/5] Fix leak of remote driver if final 'CLOSE' RPC call fails

2011-07-08 Thread Daniel P. Berrange
From: "Daniel P. Berrange" 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 prett