fixed memory leaks associated with summaryFileName