Prevent memory leaks on the recursiveClone Function.
Get rid of duplicate files.