Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tools to determine memory leak in a c/c++ code [closed]

On the unix environment, are there any tools which can easily analyse the code and mention there is a chance of memory leakage in certain sections of the code. HPUX/AIX/Solaris

like image 706
Vijay Avatar asked Jan 21 '23 07:01

Vijay


2 Answers

If you're talking about static analysis then there's cppcheck (among many others)

If you're talking about a runtime checker (which will be way more accurate and reliable than static analysis) there's valgrind

There's loads of other tools available. Check out the links above for more information

Purify will work on AIX (though it's not free.

HP has the wdb debugger, and it's capable of detecting memory leaks.

like image 61
Glen Avatar answered Jan 22 '23 20:01

Glen


I use Insure and it works well. For more information use http://www.parasoft.com/jsp/products/article.jsp?articleId=530

like image 37
Sachin Chourasiya Avatar answered Jan 22 '23 21:01

Sachin Chourasiya