free() in C — a practical guide to C free with clear examples you can reuse in real projects.
C Programming Tutorial Series (67/102). Prefer one article? Read the complete C programming tutorial.
Short description
Never use memory after free; never free twice.
free
free(a);
a = NULL;