Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT C Coding Standard
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT C Coding Standard
2 Rules
Rule 08. Memory Management (MEM)
MEM31-C. Free dynamically allocated memory when no longer needed
Page Information
Title:
MEM31-C. Free dynamically allocated memory when no longer needed
Author:
Robert C. Seacord
Jun 20, 2006
Last Changed by:
Caden Milne
Nov 08, 2024
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/GNYxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C++ Coding Standard (1)
Page:
MEM51-CPP. Properly deallocate dynamically allocated resources
SEI CERT C Coding Standard (2)
Page:
STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator
Page:
CC. Undefined Behavior
Hierarchy
Parent Page
Page:
Rule 08. Memory Management (MEM)
Labels
Global Labels (19)
review-dms
ldra
fortify
compass/rose
splint
coverity
nptc
review
android-applicable
review-jb
review-rcs
rose-partial
rule
review-ajb
cwe-401
mem
klocwork
nptc-intent
in-cpp
Recent Changes
Time
Editor
Nov 08, 2024 13:54
Caden Milne
View Changes
Updated references from C11->C23
Oct 02, 2024 12:25
Swasti Shrivastava
View Changes
Oct 02, 2024 12:23
Swasti Shrivastava
View Changes
Apr 20, 2023 05:22
Jill Britton
View Changes
Jan 18, 2023 11:50
Jill Britton
View Page History
Outgoing Links
External Links (19)
https://cwe.mitre.org/data/index.html459.html
https://www.sonarsource.com/products/codeanalyzers/sonarcfa…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://cwe.mitre.org/data/index.html771.html
https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
https://cwe.mitre.org/data/index.html
https://cwe.mitre.org/data/index.html772.html
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
cwe.mitre.org/data/definitions/401.html
https://wiki.sei.cmu.edu/confluence/display/c/PVS-Studio
https://wiki.sei.cmu.edu/confluence/display/c/AA.+Bibliogra…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://www.mathworks.com/help/bugfinder/ref/certcrulemem31…
cwe.mitre.org/
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.html404.html
https://pvs-studio.com/en/docs/warnings/v773/
SEI CERT C Coding Standard (33)
Page:
Coverity
Page:
Splint_V
Page:
TrustInSoft Analyzer
Page:
AA. Bibliography
Page:
Cppcheck Premium
Page:
Helix QAC_V
Home page:
SEI CERT C Coding Standard
Page:
Helix QAC
Page:
Cppcheck Premium_V
Page:
Axivion Bauhaus Suite_V
Page:
Polyspace Bug Finder
Page:
CodeSonar_V
Page:
Rose
Page:
Polyspace Bug Finder_V
Page:
Parasoft_V
Page:
Axivion Bauhaus Suite
Page:
PC-lint Plus_V
Page:
Cppcheck_V
Page:
PC-lint Plus
Page:
Astrée_V
Page:
Splint
Page:
Klocwork_V
Page:
BB. Definitions
Page:
Astrée
Page:
Cppcheck
Page:
PVS-Studio_V
Page:
TrustInSoft Analyzer_V
Page:
LDRA
Page:
Coverity_V
Page:
CodeSonar
Page:
Parasoft
Page:
LDRA_V
Page:
Klocwork
Overview
Content Tools
{"serverDuration": 89, "requestCorrelationId": "f8afc6b6db87662e"}