From 950977f2be45dbba20c0261c6c4dcc821a4c7b9b Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Thu, 1 Dec 2016 09:01:51 +0100 Subject: [PATCH] Fix fd leak in cli_buildopt_parse() (#156) The build.conf file is left open when using kore run. --- src/cli.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli.c b/src/cli.c index 669b678..88ce4a5 100644 --- a/src/cli.c +++ b/src/cli.c @@ -1307,6 +1307,8 @@ parse_option: printf("ignoring unknown option '%s'\n", p); } } + + fclose(fp); } static struct buildopt *