next up previous contents index
Next: C++ Object Instantiation Up: C Heap Allocation Model Previous: malloc() routine

free() routine

 

When a memory block is freed, free() checks for the usage of the immediate chunks of the chunk of the memory block and consolidate with free ones, if any. Therefore, there are no two free chunks next to each other. After the operations, the properties of the bins of free chunks remain consistent.



Mori Tetsuya / t2y3141592@gmail.com