The branch shows how to override malloc, free ,new, delete, new[] and delete[] to implement a simple memory tracker.
Linked Blog:
References:
- http://joshcarter.com/software/easy_cpp_allocation_tracking/
- https://stackoverflow.com/questions/438515/how-to-track-memory-allocations-in-c-especially-new-delete
- https://irgb.github.io/%E5%A6%82%E4%BD%95%E9%87%8D%E5%86%99%E5%BA%93%E5%87%BD%E6%95%B0%E6%88%96%E7%B3%BB%E7%BB%9F%E8%B0%83%E7%94%A8/
- https://stackoverflow.com/questions/1094532/problem-in-overriding-malloc