Fixed a memory leak issue in the Analysis controller.