]> 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)
committerPaul Jakma <paul@quagga.net>
Mon, 21 Mar 2011 13:31:16 +0000 (13:31 +0000)
commit1d19234e79c77a7d55194b513f2a77c6a691bc2c
tree4daf54c79e1cc3c3c6fa3ca66cfccb68770b3dd1
parent7e69d993673597334b1e1b3d1072a4c064f293d5
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.  Also defer calling ospf6_spf_table_finish().
ospf6d/ospf6_area.c
ospf6d/ospf6_spf.c