Hello there, cppcheck also found this little problem: [timecaf/caf.c:1568]: (error) Dereferencing 'newpath' after it is deallocated / released Source code is free(newpath); fclose(infile); unlink(newpath); Suggest put unlink before free. Regards David Binderman