c - Valgrind shows memory leak on empty program on Mac OSX 10.8 -
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 not memory leak need worry about. imageloader part of os x runtime , responsible loading binaries , dynamic libraries. allocates memory once, during initialization , forgets it, it's harmless because it's small block of memory allocated once. , bunch of things valgrind doesn't aren't incorrect. should add these suppression file.