Fixed free before use when processing user folders

The buffer is freed later in the main function.
Merge branch 'fix'