commit | 42a66d7c484f95615e0364c4aa109ce5d095776a | [log] [tgz] |
---|---|---|
author | hasso <hasso> | Mon Mar 07 08:19:44 2005 +0000 |
committer | hasso <hasso> | Mon Mar 07 08:19:44 2005 +0000 |
tree | 614d2db868d903907a7257a9a1493325eb68cba0 | |
parent | 3452d4752490516c3228da3700c93e2089e30083 [diff] [blame] |
* if_proc.c, ipforward_proc.c, rtread_proc.c: Fix fd leaks. [backport candidate]
diff --git a/zebra/rtread_proc.c b/zebra/rtread_proc.c index 6e021c3..491fc98 100644 --- a/zebra/rtread_proc.c +++ b/zebra/rtread_proc.c
@@ -96,6 +96,7 @@ rib_add_ipv4 (ZEBRA_ROUTE_KERNEL, zebra_flags, &p, &gateway, 0, 0, 0, 0); } + fclose (fp); return 0; } @@ -155,6 +156,7 @@ rib_add_ipv6 (ZEBRA_ROUTE_KERNEL, zebra_flags, &p, &gateway, 0, 0); } + fclose (fp); return 0; } #endif /* HAVE_IPV6 */