summaryrefslogtreecommitdiff
path: root/tests/topotests/ospf_basic_functionality/test_ospf_chaos.py
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2022-12-12 15:11:27 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2022-12-12 15:16:45 -0300
commitb3bcfd3dc642a89419d8dbcc6080053b0209d85b (patch)
tree93353b48eae3bab87a16b0a4cab0bf08f8aee2a3 /tests/topotests/ospf_basic_functionality/test_ospf_chaos.py
parentf2b72ef4740136a59a5bb81f8a8c654b092f8e54 (diff)
ospfd: fix memory leak on SPF calculation
Fix the following problems: - Always free vertex next hops on `vertex_parent_free` - Signalize failure on `ospf_spf_add_parent` when parent already exists so the caller has the chance to `free()` any allocated resources. - Don't reuse vertex next hops without the reference count logic in `ospf_nexthop_calculation`. Instead allocate a new copy so it can be `free()`d later without complications Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_chaos.py')
0 files changed, 0 insertions, 0 deletions