summaryrefslogtreecommitdiff
path: root/lib/flex_algo.h
diff options
context:
space:
mode:
authorLouis Scalbert <louis.scalbert@6wind.com>2023-04-27 14:50:47 +0200
committerLouis Scalbert <louis.scalbert@6wind.com>2023-04-27 15:39:23 +0200
commit771d544a5b45f8509761ff78c85020715579206d (patch)
tree96310941e76d6152569575a902024f79b40ab9f5 /lib/flex_algo.h
parent5c284625963812bc4241e10fe415429c81fce9a3 (diff)
isisd: fix a memory leak in isis_spftree_clear()
isis_spftree_clear() calls: - _isis_spftree_del() to partially delete a spftree instance without freeing spftree->route_table and spftree->route_table_backup. - then _isis_spftree_init() that allocates new spftree->route_table and spftree->route_table_backup. As a consequence, the previous table instances are not referenced and not freed. Free the route tables before allocating new ones. Fixes: 860b75b40e ("isisd: calculate flex-algo constraint spf") Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'lib/flex_algo.h')
0 files changed, 0 insertions, 0 deletions