mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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 18:18:36 +0300	[thread overview]
Message-ID: <1460474317-13235-2-git-send-email-mussitantesmortem@gmail.com> (raw)
In-Reply-To: <1460474317-13235-1-git-send-email-mussitantesmortem@gmail.com>

This commit fixed resource leak at func main

Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.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

  reply	other threads:[~2016-04-12 15:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-12 15:18 [RESEND PATCH 0/2] scripts: small fixes Maxim Zhukov
2016-04-12 15:18 ` Maxim Zhukov [this message]
2016-04-12 15:18 ` [PATCH 2/2] scripts: dtc: fix memory leak after realloc Maxim Zhukov
2016-04-12 15:39 ` [RESEND PATCH 0/2] scripts: small fixes Rob Herring
2016-04-12 15:40   ` Rob Herring
  -- strict thread matches above, loose matches on Subject: below --
2016-04-12 14:03 [PATCH 1/2] scripts: genksyms: fix resource leak Maxim Zhukov
2016-04-12 14:31 ` kbuild test robot
2016-04-12 14:39 ` kbuild test robot
2016-04-12 14:39 ` kbuild test robot

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=1460474317-13235-2-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