[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1460474317-13235-2-git-send-email-mussitantesmortem@gmail.com>
Date: Tue, 12 Apr 2016 18:18:36 +0300
From: Maxim Zhukov <mussitantesmortem@...il.com>
To: Rob Herring <robh+dt@...nel.org>
Cc: Frank Rowand <frowand.list@...il.com>,
Grant Likely <grant.likely@...aro.org>,
linux-kernel@...r.kernel.org,
Maxim Zhukov <mussitantesmortem@...il.com>
Subject: [PATCH 1/2] scripts: genksyms: fix resource leak
This commit fixed resource leak at func main
Signed-off-by: Maxim Zhukov <mussitantesmortem@...il.com>
---
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
Powered by blists - more mailing lists