]> git.puffer.fish Git - mirror/frr.git/commit
ospf6d: Fix memory allocation issues in SPF
authorTom Goff <thomas.goff@boeing.com>
Wed, 10 Nov 2010 21:02:38 +0000 (13:02 -0800)
committerDenis Ovsienko <infrastation@yandex.ru>
Sun, 25 Sep 2011 14:15:27 +0000 (18:15 +0400)
commit158dd4d00ecb0af0d1a77fdc7d4844fc88a0f10f
treeaa5b6a51272c57bd086e4e87da22cfab421f475f
parentf7c91fc330b802e95e23d52b498ae61b0e8669a9
ospf6d: Fix memory allocation issues in SPF

* ospf6_area.c: Call ospf6_spf_table_finish() before deleting the spf
    table.  This ensures that the associated ospf6_vertex structures
    are also freed.
* ospf6_spf.c: Only allocate a priority queue when a spf calculation
    is actually performed.
ospf6d/ospf6_area.c
ospf6d/ospf6_spf.c