diff --git a/src/comerr/compile_et.c b/src/comerr/compile_et.c index e5b780c9d3..ee8a600941 100644 --- a/src/comerr/compile_et.c +++ b/src/comerr/compile_et.c @@ -307,6 +307,9 @@ main(int argc, char **argv) sprintf(h_file, "%s.h", ename); } } + free(ename); + ename = NULL; + p = strrchr(filename, '.'); if (p == NULL) { p = xmalloc(strlen(filename) + 4); @@ -326,6 +329,7 @@ main(int argc, char **argv) } free(et_file); + et_file = NULL; /* on NT, yyout is not initialized to stdout */ if (!yyout) { @@ -371,6 +375,7 @@ main(int argc, char **argv) } while (count > 0); fprintf(hfile, "\n/* End of prolog file %s. */\n\n", prolog_h_file); + fclose(prolog_hfile); } }