Name
free function — Releases allocated memory
Synopsis
void free(void* ptr)
The free
function releases
the memory that ptr
points to.
The pointer must have been returned by a call to malloc
or calloc
. After freeing the pointer, do not
refer to the memory again.