[MOSYNC-3208] Fixed the memory issue in the fileListNext function.
Merge pull request #442 from asarrafi/ThreeThree

[MOSYNC-3208] Fixed the memory issue in the fileListNext function.