[libvirt] clone memory leak and libvirt connection selection