...
This rule appears in the C++ Secure Coding Standard as MEM40-CPP. Allocate and free memory in the same module, at the same level of abstraction.
...
Bibliography
Wiki Markup |
---|
\[[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\] Section 7.20.3, "Memory Management Functions" \[[ISO/IEC PDTR 24772|AA. Bibliography#ISO/IEC PDTR 24772]\] "XYL Memory Leak" \[[MIT 04|AA. Bibliography#MIT 04]\] \[[MITRE 07|AA. Bibliography#MITRE 07]\] [CWE ID 416|http://cwe.mitre.org/data/definitions/416.html], "Use After Free," and [CWE ID 415|http://cwe.mitre.org/data/definitions/415.html], "Double Free" \[[Plakosh 05|AA. Bibliography#Plakosh 05]\] \[[Seacord 05a|AA. Bibliography#Seacord 05]\] Chapter 4, "Dynamic Memory Management" |
...