]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xenapi: Resolve Coverity REVERSE_INULL
authorJohn Ferlan <jferlan@redhat.com>
Tue, 10 Mar 2015 23:10:34 +0000 (19:10 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 28 Apr 2015 15:06:40 +0000 (11:06 -0400)
commit2cb4b820fdb405a9a577f69affe8f08f2cdf68bb
tree5e9ed3c13f6576ae4935102d874f281a1563651e
parente4afc2a29d1de0a3d9297c4546948ba9812aa796
xenapi: Resolve Coverity REVERSE_INULL

Coverity complains that "net_set" is compared to NULL before calling
xen_network_set_free, but used rather liberally before that.  While
I was looking at the code I also noted that if the virAsprintfQuiet
fails, then we leak our structures - so I added those too.

(cherry picked from commit 6da29e0faa44209bcbd737920d93c760104b8349)
src/xenapi/xenapi_utils.c