TOC | Prev | Next

Using memory after you free it

If you use memory after you freed it, you crash, or corrupt memory,
or open yourself to a security hole.

char *p = malloc( 100 );
...
free(p);
*p = 'x';
TOC | Prev | Next