[OpenWrt-Devel] [PATCH] uci: properly close input before exit
Hans Dedecker
dedeckeh at gmail.com
Tue Apr 28 10:07:27 EDT 2015
Signed-off-by: Hans Dedecker <dedeckeh at gmail.com>
---
cli.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/cli.c b/cli.c
index 557472e..e1e0a66 100644
--- a/cli.c
+++ b/cli.c
@@ -687,6 +687,7 @@ int main(int argc, char **argv)
break;
case 'f':
if (input != stdin) {
+ fclose(input);
perror("uci");
return 1;
}
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list