Fix a memory leak in the TableScan operator.