http://www.cplusplus.com/reference/cstdlib/free/ free void free (void* ptr); Deallocate memory block A block of memory previously allocated by a call to malloc, calloc or realloc is deallocated, making it available again for further allocations. If p…