C Programming Language, Programming, Alx Holberton School, Tutorial.
memory to the heap before the program ends. free() in C is used to dynamically “de-allocate” the memory. The memory allocated using functions malloc() and calloc() is not de-allocated on its own. Hence the free() method is used, whenever the dynamic memory allocation takes place. It helps to reduce