title: G++ Multi-platform memory leak detection tool
body: <p>Does anyone know where I can find a memory memory leak detection tool for C++ which can be either run in a command line or as an Eclipse plug-in in Windows and Linux.  I would like it to be easy to use.  Preferably one that doesn't overwrite new(), delete(), malloc() or free().  Something like GDB if its gonna be in the command line, but I don't remember that being used for detecting memory leaks.  If there is a unit testing framework which does this automatically, that would be great.</p>
  
  <p>This question is similar to other questions (such as <a href="https://stackoverflow.com/questions/283726/memory-leak-detection-under-windows-for-gnu-c-c">Memory leak detection under Windows for GNU C/C++</a> ) however I feel it is different because those ask for windows specific solutions or have solutions which I would rather avoid.  I feel I am looking for something a bit more specific here.  Suggestions don't have to fulfill all requirements, but as many as possible would be nice.</p>
  
  <p>Thanks.</p>
  
  <p>EDIT: Since this has come up, by "overwrite" I mean anything which requires me to #include a library or which otherwise changes how C++ compiles my code, if it does this at run time so that running the code in a different environment won't affect anything that would be great.  Also, unfortunately, I don't have a Mac, so any suggestions for that are unhelpful, but thank you for trying.  My desktop runs Windows (I have Linux installed but my dual monitors don't work with it) and I'd rather not run Linux in a VM, although that is certainly an option.  My laptop runs Linux, so I can use that tool on there, although I would definitely prefer sticking to my desktop as the screen space is excellent for keeping all of the design documentation and requirements in view without having to move too much around on the desktop.</p>
  
  <p>NOTE: While I may try answers, I won't mark one as accepted until I have tried the suggestion and it is satisfactory.</p>
  
  <p>EDIT2: I'm not worried about the cross-platform compatibility of my code, it's a command line application using just the C++ libraries.</p>