Defined in header <cstdlib> void free( void* ptr );
Deallocates the space previously allocated by std::malloc(), std::calloc() or std::realloc().
If ptr is a null pointer, the function does nothing.
The behavior is undefined if the value of ptr does not equal a value returned earlier by std::malloc(), std::calloc(), or std::realloc().
The behavior is undefined if the memory area referred to by ptr has already been deallocated, that is, std::free() or std::realloc() has alre