Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Commit

Permalink
fclose() on error path
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Dec 1, 2017
1 parent 5483e3c commit 4f339d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ucarp.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ int main(int argc, char *argv[])
logfile(LOG_ERR, _("error reading passfile %s: %s"), optarg,
ferror(pw) ?
strerror(errno) : _("unexpected end of file"));
fclose(pw);
return 1;
}
fclose(pw);
Expand Down

0 comments on commit 4f339d4

Please sign in to comment.