[libvirt] PATCH: Switch all remaining code to memory alloc APIs