diff options
author | hasso <hasso> | 2005-03-07 08:19:44 +0000 |
---|---|---|
committer | hasso <hasso> | 2005-03-07 08:19:44 +0000 |
commit | 42a66d7c484f95615e0364c4aa109ce5d095776a (patch) | |
tree | 614d2db868d903907a7257a9a1493325eb68cba0 /zebra/rtread_proc.c | |
parent | 3452d4752490516c3228da3700c93e2089e30083 (diff) |
* if_proc.c, ipforward_proc.c, rtread_proc.c: Fix fd leaks.
[backport candidate]
Diffstat (limited to 'zebra/rtread_proc.c')
-rw-r--r-- | zebra/rtread_proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/rtread_proc.c b/zebra/rtread_proc.c index 6e021c32..491fc987 100644 --- a/zebra/rtread_proc.c +++ b/zebra/rtread_proc.c @@ -96,6 +96,7 @@ proc_route_read () rib_add_ipv4 (ZEBRA_ROUTE_KERNEL, zebra_flags, &p, &gateway, 0, 0, 0, 0); } + fclose (fp); return 0; } @@ -155,6 +156,7 @@ proc_ipv6_route_read () rib_add_ipv6 (ZEBRA_ROUTE_KERNEL, zebra_flags, &p, &gateway, 0, 0); } + fclose (fp); return 0; } #endif /* HAVE_IPV6 */ |