I have just resolved a memory leak in my application and now I want to write a unit test to ensure that this does not happen again.
I\'m look for a way to detect th
For Linux or other systems that use GLibC there are functions to get memory allocation statistics. Assuming no lazy allocations, you should have the same memory committed to malloc before and after you perform your test.