[libvirt PATCH 0/2] ch: fix some issues pointed out by Coverity