]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: avoid crash on error
authorEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 19:36:14 +0000 (13:36 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 21:04:36 +0000 (15:04 -0600)
commited246fbb7972a7ec04a10107f1e745c6d85e923d
treee5ea882bd5ad0b200b3e308315ad8ec393f283d6
parent9160573d327465e5f7ecbb6b2e37fd0eba3fb43b
rpc: avoid crash on error

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