Use new_array() instead of malloc().