Later, in the hardcopy version of this book, you learn about free
, a function that
does the opposite of malloc
: Instead of allocating a chunk of memory
from the free store for an object, free
returns the memory allocated
to an object to the free store. You will see that you need to use
free
whenever you write a program that repeatedly reassigns one or
more pointers to objects created at run time using malloc
.