]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospf6d: When removing a vertex free memory associated with it
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 4 Oct 2017 12:35:29 +0000 (08:35 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 4 Oct 2017 12:35:29 +0000 (08:35 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ospf6d/ospf6_spf.c

index b6059bd30ba6bf2c2494a2eff19ea696d233c17e..f635aa597096191e133d413395e7eb6ab0478a21 100644 (file)
@@ -152,7 +152,9 @@ static struct ospf6_vertex *ospf6_vertex_create(struct ospf6_lsa *lsa)
 
 static void ospf6_vertex_delete(struct ospf6_vertex *v)
 {
+       ospf6_free_nexthops(v->nh_list);
        list_delete(v->nh_list);
+
        list_delete(v->child_list);
        XFREE(MTYPE_OSPF6_VERTEX, v);
 }