ran analyzer, and fixed potencial memory leak.