free()

The function frees the memory space pointed to by ptr, which must have been returned by a previous call to malloc(), —Āalloc(), reallocarray() or realloc(). Otherwise, or if has already been called before, undefined behavior occurs. If ptr is NULL, no operation is performed. free(ptr)
ptr: Pointer to already allocated memory area. nothing