Fix memory leaks in setup and generate work for gbt solo.