diff options
author | Maxim Zhukov <mussitantesmortem@gmail.com> | 2016-04-12 22:54:59 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-04-20 09:24:49 +0200 |
commit | 4deaaa4deb0f9c42452711aa0a4b9c27016ca2f0 (patch) | |
tree | 9ab8278742f7e3db79458416417e417e79910e48 /scripts | |
parent | kconfig option for TRIM_UNUSED_KSYMS (diff) | |
download | linux-4deaaa4deb0f9c42452711aa0a4b9c27016ca2f0.tar.xz linux-4deaaa4deb0f9c42452711aa0a4b9c27016ca2f0.zip |
scripts: genksyms: fix resource leak
This commit fixed resource leak at func main
Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/genksyms/genksyms.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/genksyms/genksyms.c b/scripts/genksyms/genksyms.c index dafaf96e0a34..06121ce524a7 100644 --- a/scripts/genksyms/genksyms.c +++ b/scripts/genksyms/genksyms.c @@ -873,5 +873,8 @@ int main(int argc, char **argv) (double)nsyms / (double)HASH_BUCKETS); } + if (dumpfile) + fclose(dumpfile); + return errors != 0; } |