[PATCH V2 1/2] scripts: genksyms: fix resource leak
From: Maxim Zhukov
Date: Tue Apr 12 2016 - 16:55:57 EST
This commit fixed resource leak at func main
Signed-off-by: Maxim Zhukov <mussitantesmortem@xxxxxxxxx>
---
scripts/genksyms/genksyms.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/genksyms/genksyms.c b/scripts/genksyms/genksyms.c
index dafaf96..06121ce 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;
}
--
2.7.1.1.g3617aa0