5

I’m trying to debug a C code and unfortunately I can’t use valgrind since I have Mavericks installed.

I’m using lldb but am not sure what command to run to check for memory leaks.

1
  • 2
    You would likely use Instruments, and in particular the memory profiling sensors therein. Assuming you have Xcode installed with all its tools, of course. Commented Nov 22, 2013 at 6:56

1 Answer 1

2

If nothing else works, you might try using dmalloc library, which has been ported to OS X and is pretty good at finding reasonably complex memory allocation problems.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.