What debugger can check c++ code for memory leaks? [duplicate]
Pos开发者_Go百科sible Duplicate:
how to find memory leak in c++ code/project
I would like to ask what debugger should I install in order to check for memory leaks? I have an .a that contains a .cpp and an .h . I used a lot of pointers and references. Now I would like to test for memory leaks.
I heard about lint. Does this exist? THX
You need memory debugging, memory leak detection, and profiling tool like Valgrind.
Debuggers don't usually do that.
It is called Memory leak. You can use valgrind (linux only) for memory leaks and invalid read/write.
You can also use splint, which is static code analysis tool. But it is used to find another class of errors in the code.
精彩评论