Dynamic memory comes from the heap through malloc, calloc and realloc, and must be released with free.
1Rules
Always check the result for NULL
Free exactly once; set the pointer to NULL afterwards
calloc zero-fills; malloc does not
Loading subject content…
Dynamic memory comes from the heap through malloc, calloc and realloc, and must be released with free.
Always check the result for NULL
Free exactly once; set the pointer to NULL afterwards
calloc zero-fills; malloc does not