[libvirt] [PATCH 3/4] conf: Clean up and report error in virDomainCapsFormat