...
MEM01-EX1: If the variable goes out of scope immediately following the free(), it is not necessary to clear its value since because it will is no longer be accessible.
| Code Block | ||
|---|---|---|
| ||
void foo() {
char *str;
/* ... */
free(str);
return;
}
|
...