Query module FileMayNotBeClosed
- Open file may not be closed
- A function may return before closing a file that was opened in the function. Closing resources in the same function that opened them ties the lifetime of the resource to that of the function call, making it easier to avoid and detect resource leaks.
- efficiency security external/cwe/cwe-775
The value returned by fopen
The value from fopen at
‘call’ is either a direct call to f, or a possible call to f via a function pointer.