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 

enter image description here

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.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -