Title: FIO42-C. Close files when they are no longer needed  
Author: Robert Seacord Dec 04, 2013
Last Changed by: Jill Britton Apr 20, 2023
Tiny Link: (useful for email) https://wiki.sei.cmu.edu/confluence/x/QtUxBQ
Export As: Word · PDF  
Incoming Links
Android (1)
    Page: Unknown Applicability (C Rules/Recomendations)
SEI CERT C++ Coding Standard (1)
    Page: FIO51-CPP. Close files when they are no longer needed
Hierarchy
Parent Page
    Page: Rule 09. Input Output (FIO)
Outgoing Links
External Links (24)
    https://wiki.sei.cmu.edu/confluence/display/java/SEI+CERT+O…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v…
    https://www.mathworks.com/help/bugfinder/ref/certcrulefio42…
    https://cwe.mitre.org/data/index.html
    https://www.sonarsource.com/products/codeanalyzers/sonarcfa…
    cwe.mitre.org/data/definitions/404.html
    https://cwe.mitre.org/data/index.html459.html
    msdn.microsoft.com/en-us/library/windows/desktop/ms724211(v…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://cwe.mitre.org/data/definitions/403.html
    https://wiki.sei.cmu.edu/confluence/display/c/Polyspace+Bug…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://cwe.mitre.org/data/index.html772.html
    https://wiki.sei.cmu.edu/confluence/display/c/How+this+Codi…
    https://wiki.sei.cmu.edu/confluence/display/c/AA.+Bibliogra…
    https://cwe.mitre.org/data/index.html775.html
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
    https://wiki.sei.cmu.edu/confluence/display/java/FIO04-J.+R…
    cwe.mitre.org/
    https://wiki.sei.cmu.edu/confluence/display/cplusplus/FIO51…
    https://cwe.mitre.org/data/index.html773.html
SEI CERT C Coding Standard (21)     Page: Astrée
    Page: Helix QAC_V
    Page: Helix QAC
    Page: CodeSonar_V
    Page: CodeSonar
    Page: PC-lint Plus_V
    Page: Coverity_V
    Page: Parasoft
    Page: AA. Bibliography
    Page: LDRA
    Page: Rose
    Page: Klocwork
    Page: LDRA_V
    Page: Klocwork_V
    Page: Coverity
    Page: Astrée_V
    Page: Polyspace Bug Finder_V
    Page: PC-lint Plus
    Home page: SEI CERT C Coding Standard
    Page: BB. Definitions
    Page: Parasoft_V