Skip to content

Commit f20a227

Browse files
committed
[#117] call closedir(dir) when checking requirements
1 parent 4730988 commit f20a227

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ void check_requirements()
8585
exit(EXIT_FAILURE);
8686
}
8787

88+
closedir(dir);
89+
8890
}
8991

9092
pclose(fd);
@@ -100,6 +102,8 @@ void check_requirements()
100102
exit(EXIT_FAILURE);
101103
}
102104

105+
closedir(dir);
106+
103107
}
104108

105109
pclose(fd);

0 commit comments

Comments
 (0)