[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1262830961-29911-1-git-send-email-a.beregalov@gmail.com>
Date: Thu, 7 Jan 2010 05:22:41 +0300
From: Alexander Beregalov <a.beregalov@...il.com>
To: mmarek@...e.cz
Cc: linux-kernel@...r.kernel.org,
Alexander Beregalov <a.beregalov@...il.com>
Subject: [PATCH] genksyms: close ref_file after use
It is the last place when the file is read, so close it.
Signed-off-by: Alexander Beregalov <a.beregalov@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists