]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Resolve Coverity FORWARD_NULL
authorJohn Ferlan <jferlan@redhat.com>
Thu, 11 Sep 2014 21:45:04 +0000 (17:45 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 12 Sep 2014 10:12:50 +0000 (06:12 -0400)
commit78fbc79d85f32eddda5379ced7ec8f9b45c45e59
tree3ebf6f6dec7de000cefad833ede76d909fe8d2e0
parent8d44f924ce35a3b975814deb17300ddcb5afd6c0
qemu: Resolve Coverity FORWARD_NULL

If we end up at the cleanup lable before we've VIR_EXPAND_N the list,
then calling virQEMUCapsFreeStringList() with a NULL proplist could
theoretically deref proplist if nproplist was set. Coverity doesn't
seem to acknowledge the relationship between proplist and nproplist
assuming in virQEMUCapsFreeStringList that nproplist could be at
least 1 and thus have a null deref.  It only seems to follow the
NULL proplist.

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