Memory leak detection under Windows for GNU C/C++

2019-01-23 18:08发布

问题:

What memory leak detection tools are available for use with open source C/C++ on Windows?

回答1:

The mem (revised) package is an effective and straightforward tool to detect memory buffer overflows, underflows, leaks, double-deletion, and dangling references.

Original link to c.snippets.org, now invalid.



回答2:

I've been using VLD (Visual Leak Detector) for some times, it works nicely for good code, for more complex code; it's not perfect.



回答3:

WinDbg is always a good choice for any program open or closed.



回答4:

LeakDiag. Quite hard to find nowadays, but available here. You might also like to get LDGrapher, available in the same place.