[libvirt] [PATCHv2 9/3] qemu: avoid memory leaks