fixed memory management for TableScan operator