Valgrind installed using brew.
#include <stdio.h> #include <stdlib.h> int main() { return 0; } gcc -g -o hello hello.c valgrind --tool=memcheck --leak-check=yes ./hello
This is not a memory leak that you need to worry about. ImageLoader is part of the OS X runtime and is responsible for loading binary files and dynamic libraries. It allocates some memory once during initialization and forgets about it, but it is harmless because it is a small memory block allocated only once. And this is a bunch of things that Walgrind does not like, but this is not true. You must add them to the suppression file .
Support for Mac OSX 10.8 in Valgrind is still limited. ImageLoaderMachO :: doInitialization ... should be in your suppression file.
The other answer is correct, I just had the same problem and I had a small problem with creating a suppression file. So, to help others, here is the minimal suppression file I created for Mac OS X Mountain Lion: https://www.dropbox.com/s/2btyqnf8uesgsis/minimal.supp