This rule finds calls to
fopen with no corresponding
fclose call in the entire program.
Leaving files open will cause a resource leak that will persist even after the program terminates.
This check is an approximation, so some results may not be actual defects in the program. It is not possible in general to compute the exact value of the variable without running the program with all possible input data.
Ensure that all file or socket descriptors allocated by the program are freed before it terminates.