summaryrefslogtreecommitdiffstats
path: root/zebra/if_proc.c
diff options
context:
space:
mode:
authorhasso <hasso>2005-03-07 08:19:44 +0000
committerhasso <hasso>2005-03-07 08:19:44 +0000
commit4b489895624207603ef108b2b59b932645ae1feb (patch)
tree4baaee562da7bfca430f6e3519f16c6bfbba5595 /zebra/if_proc.c
parentb35ef2ce113d232517e17103f3e6b4c149be5678 (diff)
downloadquagga-4b489895624207603ef108b2b59b932645ae1feb.tar.bz2
quagga-4b489895624207603ef108b2b59b932645ae1feb.tar.xz
* if_proc.c, ipforward_proc.c, rtread_proc.c: Fix fd leaks.
[backport candidate]
Diffstat (limited to 'zebra/if_proc.c')
-rw-r--r--zebra/if_proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/if_proc.c b/zebra/if_proc.c
index 199a8e70..504d2f3c 100644
--- a/zebra/if_proc.c
+++ b/zebra/if_proc.c
@@ -242,6 +242,7 @@ ifaddr_proc_ipv6 ()
connected_add_ipv6 (ifp, &p.prefix, p.prefixlen, NULL);
}
+ fclose (fp);
return 0;
}
#endif /* HAVE_IPV6 && HAVE_PROC_NET_IF_INET6 */