zalloc returns a temporary pointer. It expires if you call zalloc enough times. You don’t have this problem with series().