ceriel 22 years ago
parent
commit
611e8b03fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util/LLgen/src/main.c

+ 1 - 1
util/LLgen/src/main.c

@@ -192,12 +192,12 @@ main(argc,argv) register string	argv[]; {
 	do_compute();
 	conflchecks();
 	if (nerrors) comfatal();
+	fclose(fact);
 	if (argc-- == 1) {
 		fputs("No code generation for input from standard input\n",
 		      stderr);
 	}
 	else	gencode(argc);
-	fclose(fact);
 	UNLINK(f_temp);
 	UNLINK(f_pars);
 	if (verbose) {