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
I really like ValGrind for this sort of thing. These tools already exist; you don't need to write your own unit tests to detect memory leaks.