memory-pool: revert adding variable to memory pool

Because it is closed by expression. We don't need to close it.