[git commit master 1/1] add missing fclose's

Denys Vlasenko vda.linux at googlemail.com
Wed Mar 2 03:01:24 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=708dd4c98662670f3104b71c2fc5eef82bb726a8
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Alexey Fomenko <ext-alexey.fomenko at nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/route.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/networking/route.c b/networking/route.c
index b7d08dd..ac4fbb4 100644
--- a/networking/route.c
+++ b/networking/route.c
@@ -537,6 +537,7 @@ void FAST_FUNC bb_displayroutes(int noresolve, int netstatfmt)
 			printf("%-6d %-2d %7d %s\n", metric, ref, use, devname);
 		}
 	}
+	fclose(fp);
 }
 
 #if ENABLE_FEATURE_IPV6
@@ -625,6 +626,7 @@ static void INET6_displayroutes(void)
 			}
 		} while (1);
 	}
+	fclose(fp);
 }
 
 #endif
-- 
1.7.3.4



More information about the busybox-cvs mailing list