]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: Plug memory leak on virNetClientSendInternal() error path
authorAlex Jia <ajia@redhat.com>
Wed, 30 Nov 2011 05:57:09 +0000 (13:57 +0800)
committerEric Blake <eblake@redhat.com>
Wed, 30 Nov 2011 23:23:18 +0000 (16:23 -0700)
commit773a4ea5e1c4d425101f6488e58340973b396e8c
tree0ad894dbc1290d0959006f5b77fd270a1b67a066
parentad8fa356a6c444b616d85bf44635c2c275526fac
rpc: Plug memory leak on virNetClientSendInternal() error path

Detected by Coverity. Leak introduced in commit 673adba.

Two separate bugs here:
1. call was not freed on all error paths
2. virCondDestroy was called even if virCondInit failed

Signed-off-by: Alex Jia <ajia@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
src/rpc/virnetclient.c