diff options
author | Don Slice <dslice@cumulusnetworks.com> | 2016-06-27 13:34:32 +0200 |
---|---|---|
committer | Don Slice <dslice@cumulusnetworks.com> | 2016-06-28 13:52:38 +0200 |
commit | 3f6d6a5db80fd465e15383ee96867153578fc316 (patch) | |
tree | 24309bf26544f8828d22707362df4a7270f56e14 /ospf6d/ospf6_spf.c | |
parent | pimd: Fix register receive pointer arithmetic (diff) | |
download | frr-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 'ospf6d/ospf6_spf.c')
-rw-r--r-- | ospf6d/ospf6_spf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ospf6d/ospf6_spf.c b/ospf6d/ospf6_spf.c index 5b77bf00a..ab1213ebb 100644 --- a/ospf6d/ospf6_spf.c +++ b/ospf6d/ospf6_spf.c @@ -158,6 +158,7 @@ ospf6_vertex_create (struct ospf6_lsa *lsa) static void ospf6_vertex_delete (struct ospf6_vertex *v) { + list_delete(v->nh_list); list_delete (v->child_list); XFREE (MTYPE_OSPF6_VERTEX, v); } |