Removed memory leak check from main program.