add missing fclose's
authorAlexey Fomenko <ext-alexey.fomenko@nokia.com>
Wed, 2 Mar 2011 03:01:24 +0000 (04:01 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 2 Mar 2011 03:01:24 +0000 (04:01 +0100)
Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/route.c

index b7d08dd632a4700bc1a54b49b4c84899559986e9..ac4fbb472b1764850b12f6133476ffc7016f2d5b 100644 (file)
@@ -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