...
| SEI CERT C++ Coding Standard | MEM53-CPP. Explicitly initiate and terminate object lifetime when manually managing lifetime |
| CERT C Secure Coding Standard | MEM31-C. Free dynamically allocated memory when no longer needed |
| MITRE CWE | CWE 590, Free of Memory Not on the Heap CWE 415, Double Free CWE 404, Improper Resource Shutdown or Release CWE 762, Mismatched Memory Management Routines |
Bibliography
| [Dowd 2007] | "Attacking delete and delete [] in C++" | ||
| [Henricson 1997] | Rule 8.1, delete should only be used with newRule 8.2, delete [] should only be used with new [] | ||
| [ISO/IEC 14882-2014] | 5.3.5, "Delete" 12.8, "Copying and Moving Class Objects" 18.6.1, "Storage Allocation and Deallocation" | ||
| [Seacord 2013bMeyers 2005] | Chapter 4, "Dynamic Memory Management" | ||
| [Viega 05] | "Doubly Freeing Memory" | ||
| [Henricson 1997] | Rule 8.1, delete should only be used with newRule 8.2, delete [] should only be used with new [] | ||
| [Meyers 2005] | Item 16,Item 16, Use the same form in corresponding uses of new and delete | ||
[Dowd 2007Seacord 2013b]"Attacking delete and delete [] in C++" | Chapter 4, "Dynamic Memory Management" | ||
| [Viega 05] | "Doubly Freeing Memory" | ||
...