2.2.2 : Dammit, I have memory leak in my program



Ok, right now you just have to relax a bit, this is totally normal not to develop a working program at the first try.

The point here is : if you already know that your program has a memory leak, this leak is probably huge.


As for the debugger mode, the memory check (or memcheck) is performed by valgrind by emulating the CPU. It is here to help you when you want to find why something is going wrong in your program such as memory leak.