* [PATCH] genksyms: close ref_file after use
@ 2010-01-07 2:22 Alexander Beregalov
2010-01-07 12:23 ` Michal Marek
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Beregalov @ 2010-01-07 2:22 UTC (permalink / raw)
To: mmarek; +Cc: linux-kernel, Alexander Beregalov
It is the last place when the file is read, so close it.
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---
scripts/genksyms/genksyms.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/scripts/genksyms/genksyms.c b/scripts/genksyms/genksyms.c
index af6b836..f99115e 100644
--- a/scripts/genksyms/genksyms.c
+++ b/scripts/genksyms/genksyms.c
@@ -758,8 +758,10 @@ int main(int argc, char **argv)
/* setlinebuf(debugfile); */
}
- if (flag_reference)
+ if (flag_reference) {
read_reference(ref_file);
+ fclose(ref_file);
+ }
yyparse();
--
1.6.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] genksyms: close ref_file after use
2010-01-07 2:22 [PATCH] genksyms: close ref_file after use Alexander Beregalov
@ 2010-01-07 12:23 ` Michal Marek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2010-01-07 12:23 UTC (permalink / raw)
To: Alexander Beregalov; +Cc: linux-kernel
On Thu, Jan 07, 2010 at 05:22:41AM +0300, Alexander Beregalov wrote:
> It is the last place when the file is read, so close it.
>
> Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Applied, thanks.
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-07 12:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-07 2:22 [PATCH] genksyms: close ref_file after use Alexander Beregalov
2010-01-07 12:23 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).