From: Maxim Zhukov <mussitantesmortem@gmail.com>
To: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>,
Grant Likely <grant.likely@linaro.org>,
linux-kernel@vger.kernel.org,
Maxim Zhukov <mussitantesmortem@gmail.com>
Subject: [PATCH 1/2] scripts: genksyms: fix resource leak
Date: Tue, 12 Apr 2016 17:03:27 +0300 [thread overview]
Message-ID: <1460469808-31227-1-git-send-email-mussitantesmortem@gmail.com> (raw)
This commit fixed resource leak at func main
Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
---
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
next reply other threads:[~2016-04-12 14:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-12 14:03 Maxim Zhukov [this message]
2016-04-12 14:03 ` [PATCH 2/2] scripts: dtc: fix memory leak after realloc Maxim Zhukov
2016-04-12 14:31 ` [PATCH 1/2] scripts: genksyms: fix resource leak kbuild test robot
2016-04-12 14:39 ` kbuild test robot
2016-04-12 14:39 ` kbuild test robot
2016-04-12 15:18 [RESEND PATCH 0/2] scripts: small fixes Maxim Zhukov
2016-04-12 15:18 ` [PATCH 1/2] scripts: genksyms: fix resource leak Maxim Zhukov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1460469808-31227-1-git-send-email-mussitantesmortem@gmail.com \
--to=mussitantesmortem@gmail.com \
--cc=frowand.list@gmail.com \
--cc=grant.likely@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome