free

free

Defined in header <stdlib.h>
void free( void* ptr );

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

If ptr is a null pointer, the function does nothing.

The behavior is undefined if the value of ptr登录查看完整内容