Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Some static analysis tools can detect cases where there is leak of a socket resource or leak of a stream representing a file or other system resources.

Tool
Version
Checker
Description
Coverity7.5

ITERATOR

JDBC_CONNECTION

RESOURCE_LEAK

Implemented

Related Guidelines

CERT C Coding Standard

FIO22-C. Close files before spawning processes

CERT C++ Secure Coding Standard

FIO42-CPP. Ensure files are properly closed when they are no longer needed

MITRE CWE

CWE-404. Improper resource shutdown or release

 

CWE-459. Incomplete cleanup

 

CWE-770. Allocation of resources without limits or throttling

 

CWE-405. Asymmetric resource consumption (amplification)

...