Fix a small memory leak at init.