[libvirt] [PATCH 7/3] rpc: avoid crash on error

2011-08-02 Thread Eric Blake
Detected by Coverity. Freeing the wrong variable results in both a memory leak and the likelihood of the caller dereferencing through a freed pointer. * src/rpc/virnettlscontext.c (virNetTLSSessionNew): Free correct variable. --- src/rpc/virnettlscontext.c |2 +- 1 files changed, 1

Re: [libvirt] [PATCH 7/3] rpc: avoid crash on error

2011-08-02 Thread Laine Stump
On 08/02/2011 03:38 PM, Eric Blake wrote: Detected by Coverity. Freeing the wrong variable results in both a memory leak and the likelihood of the caller dereferencing through a freed pointer. * src/rpc/virnettlscontext.c (virNetTLSSessionNew): Free correct variable. ---