pipeline: fix table state memory allocation