]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Resolve Coverity FORWARD_NULL
authorJohn Ferlan <jferlan@redhat.com>
Thu, 4 Sep 2014 20:12:44 +0000 (16:12 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 11 Sep 2014 12:10:13 +0000 (08:10 -0400)
commitbf15f10abe71dfa0e814185ca5217406b10601c2
tree3130d5831808537138cff597290a89c9fdd19510
parent60b029c7a0e934278e50d428a22da0119d62c7f6
qemu: Resolve Coverity FORWARD_NULL

If the virJSONValueNewObject() fails, then rather than going to error
and getting a Coverity false positive since it doesn't seem to understand
the relationship between nkeywords, keywords, and values and seems to
believe calling qemuFreeKeywords will cause a NULL deref - just return NULL

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