Skip to content

Commit

Permalink
Fix Coverity CID12145 - leaking file handle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel-Naumann committed Sep 12, 2016
1 parent 84b78d8 commit 0366735
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/rmkdepend/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,8 @@ char *line,
printf(" "); /* we need this to update the time stamp! */
fflush(fdout);
}
if (fdin) fclose(fdin);
/* don't mess with stdout: if (fdout) fclose(fdout); */
}

void fatalerr(char *msg, ...)
Expand Down

0 comments on commit 0366735

Please sign in to comment.