TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
 
C++ Coding Standard
Search

Rule:  PCA#001Checked automatically with code checker

Synopsis:Don't use malloc, calloc, realloc, free and cfree for memory management
Language:C++
Severity Level:1
Category:Parts of C++ to Avoid


Description:

In C malloc, realloc and free are used to allocate memory explicitly on the heap. In C++ one should use automated memory management by means of smart pointers instead.