Skip to content

Commit

Permalink
Merge pull request FRRouting#14238 from Keelan10/ospf-leak-fix
Browse files Browse the repository at this point in the history
ospfd: Delete `q_space->vertex_list` on No Backup Path
  • Loading branch information
donaldsharp authored Aug 19, 2023
2 parents f3b3813 + 64e0a47 commit fa8e49c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ospfd/ospf_ti_lfa.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ static void ospf_ti_lfa_generate_q_spaces(struct ospf_area *area,
__func__, &p_space->root->id, &q_space->root->id,
res_buf);

list_delete(&q_space->vertex_list);
XFREE(MTYPE_OSPF_Q_SPACE, q_space->p_node_info);
XFREE(MTYPE_OSPF_Q_SPACE, q_space->q_node_info);
XFREE(MTYPE_OSPF_Q_SPACE, q_space);
Expand Down

0 comments on commit fa8e49c

Please sign in to comment.