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.
|