Detecting memory leaks with WinDBG the modern (and free) way
http://cfc.kizzx2.com/index.php/detecting-memory-leaks-with-windbg-the-modern-and-free-way/
detailed instruction: Memory Leak Detection Using Windbg
http://www.codeproject.com/KB/cpp/MemoryLeak.aspx
simple instruction: Heap Debugging (Memory/Resource Leak) with WinDbg
http://hacksoflife.blogspot.com/2009/06/heap-debugging-memoryresource-leak-with.html
gflags /i leak.exe +ust
windbg -g leak.exe
gflags /i leak.exe -ust
In Windbg, you can check statck with below way:
{80} normal block at 0x003B4378, 8000 bytes long. Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
!heap -p -a 0x003B4378