From 510d70dbdf5c0fd057cfd11a8ed5a812801d1538 Mon Sep 17 00:00:00 2001 From: Kai Germaschewski Date: Tue, 11 Feb 2003 02:54:42 -0600 Subject: kbuild: scripts/fixdep.c doesn't close files when finished From Chris Wedgwood: > fixdep doesn't close files when finished with them... normally this > doesn't matter unless you have strict ulimits in place. > > Trivial fix is: --- scripts/fixdep.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/fixdep.c b/scripts/fixdep.c index a14e0bfd326a..ef292f9d49a7 100644 --- a/scripts/fixdep.c +++ b/scripts/fixdep.c @@ -277,6 +277,8 @@ void do_config_file(char *filename) parse_config_file(map, st.st_size); munmap(map, st.st_size); + + close(fd); } void parse_dep_file(void *map, size_t len) @@ -346,6 +348,8 @@ void print_deps(void) parse_dep_file(map, st.st_size); munmap(map, st.st_size); + + close(fd); } void traps(void) -- cgit v1.2.3