summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_vrf.c
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2016-06-27 13:34:32 +0200
committerDon Slice <dslice@cumulusnetworks.com>2016-06-28 13:52:38 +0200
commit3f6d6a5db80fd465e15383ee96867153578fc316 (patch)
tree24309bf26544f8828d22707362df4a7270f56e14 /zebra/zebra_vrf.c
parentpimd: Fix register receive pointer arithmetic (diff)
downloadfrr-3f6d6a5db80fd465e15383ee96867153578fc316.tar.xz
frr-3f6d6a5db80fd465e15383ee96867153578fc316.zip
zebra/ospf/ospf6: Fix several memory leaks on if up/down
Resolved several memory leaks caused by ifdown/ifup the vrf device or a swp port. For bgp/zebra/ospf/ospf6, bouncing the vrf device would cause a linked list, Interface, and route-table to get leaked. For ospf6, bouncing the swp device also caused leaks of Connected and Prefix entries. Ticket: CM-10841 Signed-off-by: Don Slice Reviewed-By: Donald Sharp Testing Done: Manual testing, bgp and ospf mins passed, smokes had fewer failures than base
Diffstat (limited to 'zebra/zebra_vrf.c')
-rw-r--r--zebra/zebra_vrf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zebra_vrf.c b/zebra/zebra_vrf.c
index 382d5e4a5..46dc29d10 100644
--- a/zebra/zebra_vrf.c
+++ b/zebra/zebra_vrf.c
@@ -79,7 +79,8 @@ zebra_vrf_new (vrf_id_t vrf_id, const char *name, void **info)
{
struct zebra_vrf *zvrf = *info;
- zlog_info ("ZVRF %s with id %u", name, vrf_id);
+ if (IS_ZEBRA_DEBUG_EVENT)
+ zlog_info ("ZVRF %s with id %u", name, vrf_id);
if (! zvrf)
{