Compiling with OpenMP results in a memory leak
问题 According to valgrind, I can induce a memory leak when compiling a simple hello-world program with OpenMP. This doesn't make sense, because the hello-world program does not intentionally use any OpenMP functionality. Suppose the program below is named hi.c and compiled according to $ gcc -o hi hi.c GCC version 4.8.3 #include <stdio.h> int main( void ) { printf( "hi\n" ); return 1; } We should expect a leak report from valgrind to verify the obvious: there are no leaks. My observations agree