This commit fixes a memory leak in the process file handling