[libvirt] [PATCH] Fix double-free and broken logic in virt-login-shell