Log in

View Full Version : finding out memory leakage from disassembly


blahh
June 27th, 2011, 08:25
A classic case of memory leakage is when you have a Base class `Base`, a child class `Child`, you don't have a `virtual destructor` and do the following.

Base *b = new Child();
delete b;

Are there any patterns to look for in the disassembly in order to stop such leaks? I ask this in relation to spotting memory leaks for the dangling pointer exploitation technique.