9

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

Rob Kam
  • 10,063
  • 14
  • 55
  • 65
  • I use deleaker - power tool. But it's proprietary) – John Smith Apr 02 '12 at 20:04
  • 2
    This question is very specific. It asks about something not easy to find. It's also very useful. It's more about specific knowledge than opinion. I think locking this takes away from value of the site. – Piotr Lopusiewicz Jan 14 '15 at 00:31

4 Answers4

7

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.

Mankarse
  • 39,818
  • 11
  • 97
  • 141
Max
  • 3,128
  • 1
  • 24
  • 24
  • Newer version at author's home page: http://dmoulding.googlepages.com/vld – Chris Morley Nov 13 '08 at 03:49
  • From the documentation: It is designed specifically for use with Visual C++, and it depends on heap debugging functions found only in Microsoft's C runtime library. – Rob Kam Nov 13 '08 at 08:30
  • @RobKam: The source code is readily available for Microsoft's C runtime library. – Ben Voigt Nov 06 '11 at 03:13
5

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.

JoshDM
  • 4,939
  • 7
  • 43
  • 72
Walter Bright
  • 4,277
  • 1
  • 23
  • 28
  • Snippets.org no longer exists as a host for mem.txt; it is now a deals website. I located a modified copy of Mem here for now : http://teaching.idallen.com/c_programming/mem/ – JoshDM Oct 24 '11 at 18:48
0

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

Nick Berardi
  • 54,393
  • 15
  • 113
  • 135
0

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

Martin
  • 5,392
  • 30
  • 39