[libvirt PATCH] qemu: fix potential resource leak