timecaf/caf.c:1568: use of variable after free

David Binderman dcb314 at hotmail.com
Sun Jun 16 21:38:24 UTC 2013


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 		 	   		  


More information about the inn-workers mailing list