std::free

From Cppreference

< cpp | memory | c
Jump to: navigation, search
Defined in header <cstdlib>

void free( void* ptr );

Deallocates the space previously allocated by malloc(), calloc() or realloc().

[edit] Parameters

ptr - pointer to the memory to deallocate

[edit] Return value

(none)