You don't have the latest sources. In the latest sources (in CVS), the code looks like this: static void close_input_stream () { if (cpp_pipe != NULL) { pclose (cpp_pipe); cpp_pipe = NULL; }