Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Memory leak detection on Mac OS

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.

like image 684
user1799323 Avatar asked Nov 01 '22 10:11

user1799323


1 Answers

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.

like image 84
Alexander L. Belikoff Avatar answered Nov 15 '22 06:11

Alexander L. Belikoff