Fix massive memory leak. Oopsie.