[libvirt] [PATCH 2/6] tests: Resolve Coverity RESOURCE_LEAK