diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2003-02-11 02:54:42 -0600 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2003-02-11 02:54:42 -0600 |
| commit | 510d70dbdf5c0fd057cfd11a8ed5a812801d1538 (patch) | |
| tree | 606a4b22777a552e124ba55e1d766f3bc2ff79f5 /scripts | |
| parent | e9dfd3da8182d4f5ae6b2b1662ba5d33b4ddba7e (diff) | |
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:
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/fixdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
