Skip to content

Commit

Permalink
Ensure we close FILEs.
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jan 26, 2015
1 parent 9d68a5b commit ff19b19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/radmin.c
Expand Up @@ -815,6 +815,9 @@ int main(int argc, char **argv)

fprintf(outputfp, "\n");

if (inputfp != stdin) fclose(inputfp);
if (outputfp != stdout) fclose(outputfp);

return 0;
}

0 comments on commit ff19b19

Please sign in to comment.