Don't delete `t_buffer` in the end and then `buffer = t_buffer` is fine.