Skip to content

Commit

Permalink
[#117] call closedir(dir) when checking requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
dgraziotin committed Jun 21, 2017
1 parent 4730988 commit f20a227
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ void check_requirements()
exit(EXIT_FAILURE);
}

closedir(dir);

}

pclose(fd);
Expand All @@ -100,6 +102,8 @@ void check_requirements()
exit(EXIT_FAILURE);
}

closedir(dir);

}

pclose(fd);
Expand Down

0 comments on commit f20a227

Please sign in to comment.