command in unix for checking memory leaks

This is a discussion on command in unix for checking memory leaks within the Linux Programming forums, part of the Platform Specific Boards category; hi friends, i have developed a project in c . but there seems to be some memory leaks. i s ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    17

    command in unix for checking memory leaks

    hi friends,

    i have developed a project in c . but there seems to be some memory leaks.
    i s there any command in unix where i can check the memory leak.
    i have used a cc compiler in unix.

    thanks friends

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Maybe you need to track where you malloc()'d and free()'d your memory. You'll probably find a descrepancy in the number of calls to each function. Remember, their should be a one-to-one relationship.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking for memory leaks
    By Bladactania in forum C Programming
    Replies: 5
    Last Post: 02-10-2009, 11:58 AM
  2. 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
  3. Trying to solve my memory leaks
    By h3ro in forum C++ Programming
    Replies: 23
    Last Post: 02-18-2008, 04:54 PM
  4. Memory leaks
    By Eber Kain in forum C++ Programming
    Replies: 3
    Last Post: 12-20-2001, 11:58 AM
  5. Memory Leaks
    By SwirlingVortex in forum C++ Programming
    Replies: 2
    Last Post: 09-21-2001, 06:34 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21