Remove debug prints and a memory leak.