]> xenbits.xensource.com Git - libvirt.git/commit
xenapi: Resolve Coverity REVERSE_INULL
authorJohn Ferlan <jferlan@redhat.com>
Tue, 10 Mar 2015 23:10:34 +0000 (19:10 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 11 Mar 2015 18:38:45 +0000 (14:38 -0400)
commit6da29e0faa44209bcbd737920d93c760104b8349
tree55d46317fd89c11aa716650b205a8fa07f650634
parentb193a1d61737fad7cf4b96e5fd9443b0ace36efc
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.
src/xenapi/xenapi_utils.c