Reputation: 21019
I just upgraded to Mac OS X Mountain Lion and found out that valgrind
is still not compatible with Mountain Lion.
I have a 600 line C code that I need to check against memory leaks.
What are possible ways to do it other than valgrind? Can I use Xcode instruments?
Upvotes: 3
Views: 1375
Reputation: 19243
You could check the clang static analyzer. It's pretty awesome tool for finding bugs in the code.
It's better than valgrind in the fact that it does static analysis rather than running the code — so it can find bugs which you rarely reach. However, it is more likely to trigger false positives as well. And it's not as mature as valgrind.
Upvotes: 5