Add code to track malloc/free calls. Following features can be implemented using that.
- We know what is being allocated in stack/heap.
- We know dangling pointers.
- We know double frees.
- We will know incorrect free. (When some part of the allocated memory is freed.)
- Can track lost memory.
Add code to track malloc/free calls. Following features can be implemented using that.