Remove memory leak from TODO

I solved this by using a large static buffer which does not need to be
freed.