]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: More qemu_monitor_json cleanups
authorJohn Ferlan <jferlan@redhat.com>
Mon, 16 May 2016 11:47:26 +0000 (07:47 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 16 May 2016 17:41:10 +0000 (13:41 -0400)
commit52760707bc1dedf0766a194062dbcdecb85fd407
treeb0a275cb1190b8300c89ab2881c6b73c23d7913c
parenta1efc9428bcdf6075fac0dac4d73ff2858216d7f
qemu:  More qemu_monitor_json cleanups

Recent adjustments to the code produced a litany of coverity false
positives, but only because the "standard" procedure of setting a
variable to NULL after it was assigned to something else and keeping
the *Free/*FREE call in the cleanup path wasn't kept. So this patch
makes those adjustments (assign variable to NULL and remove the if
'ret < 0' condition to clean it up).

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_monitor_json.c