free memoryIf you don't free it, it's a memory leak.
void somefunc( void ) {
char *p = malloc(100);
/* do some stuff with p */
return;
/* p goes out of scope, and we never again get a pointer */
/* to that memory to free */
}
TOC |
Prev
|
Next