[PATCH 1/2] scripts: genksyms: fix resource leak

From: Maxim Zhukov
Date: Tue Apr 12 2016 - 10:03:52 EST


This commit fixed resource leak at func main

Signed-off-by: Maxim Zhukov <mussitantesmortem@xxxxxxxxx>
---
scripts/genksyms/genksyms.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/scripts/genksyms/genksyms.c b/scripts/genksyms/genksyms.c
index dafaf96..7c8f00e 100644
--- a/scripts/genksyms/genksyms.c
+++ b/scripts/genksyms/genksyms.c
@@ -873,5 +873,7 @@ int main(int argc, char **argv)
(double)nsyms / (double)HASH_BUCKETS);
}

+ fclose(dumpfile);
+
return errors != 0;
}
--
2.7.1.1.g3617aa0