Versions Compared

Key

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

...

Tool
Version
Checker
Description
Coverity7.5

ITERATOR

JDBC_CONNECTION

RESOURCE_LEAK

Implemented

Related Guidelines

SEI CERT C Coding Standard

FIO22-C. Close files before spawning processes

SEI CERT C++ Coding Standard

FIO51-CPP. Close files 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)

...

The compliant solution (Java SE 7: try-with-resources) is not yet supported at API level 18 (Android 4.3).

Bibliography

[API 2006]

Class Object

[Goetz 2006b]

 

[J2SE 2011]

The try-with-resources Statement

...