Thread: Any Memory Leak Checking Tool?

  1. #1
    Registered User
    Join Date
    May 2006

    Any Memory Leak Checking Tool?

    Hello everyone,

    I am wondering whether there is a memory leak checking tool for C/C++ on Linux platform which has the following function,

    - Can detect whether there are any un-freed memory after the execution of a specific program or a specific section or a program?

    - Can report the memory leak point inside a program with related function call stack trace so that I can study in depth.

    thanks in advance,

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    You could try Valgrind, but my lack of experience in programming under Linux means that I personally have never used it.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Join Date
    Dec 2005


    There's also something called dmalloc that works pretty well.

    Check the documentation on the site -- it's pretty extensive as I recall.
    Mr. Blonde: You ever listen to K-Billy's "Super Sounds of the Seventies" weekend? It's my personal favorite.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    The tutorials recommend "IBM's Purify".

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Sure there is. You.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  2. memory leak in vector <int>
    By franziss in forum C++ Programming
    Replies: 21
    Last Post: 10-10-2006, 06:54 AM
  3. Memory Leak
    By Berticus in forum C++ Programming
    Replies: 5
    Last Post: 07-20-2005, 05:11 PM
  4. Is this a memory leak?
    By cboard_member in forum C++ Programming
    Replies: 9
    Last Post: 07-20-2005, 01:15 PM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM