Fixed file list memory leaks.