diff -Nurd pinfo-0.6.9/src/filehandling_functions.c pinfo-0.6.9-new/src/filehandling_functions.c --- pinfo-0.6.9/src/filehandling_functions.c 2006-03-16 10:15:02.000000000 -0500 +++ pinfo-0.6.9-new/src/filehandling_functions.c 2010-04-20 13:24:47.000000000 -0400 @@ -200,7 +200,7 @@ } /* if we haven't found anything, clean up and exit */ - if (!goodHit) + if ( id && !goodHit ) { fclose(id); id = 0;