Skip to content

Commit

Permalink
ospfd: ospf_route.c memory leak fix
Browse files Browse the repository at this point in the history
The rn variable has its info attribute being replaced with a new ospf route before being freed properly.

Signed-off-by: ryndia <dindyalsarvesh@gmail.com>
  • Loading branch information
ryndia committed May 30, 2023
1 parent 9be555f commit ce0d06d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ospfd/ospf_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,8 @@ void ospf_intra_add_stub(struct route_table *rt, struct router_lsa_link *link,
__func__);
}
}
if (rn->info)
ospf_route_free(rn->info);

rn->info = or ;

Expand Down

0 comments on commit ce0d06d

Please sign in to comment.