[Libvir] Avoid leak upon failed realloc