command in unix for checking memory leaks [Archive] - C Board

PDA

View Full Version : command in unix for checking memory leaks


sanju
01-22-2003, 05:46 AM
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

Hammer
01-22-2003, 06:51 AM
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.