diff options
| author | ryndia <dindyalsarvesh@gmail.com> | 2023-04-26 18:52:49 +0400 |
|---|---|---|
| committer | ryndia <dindyalsarvesh@gmail.com> | 2023-05-30 20:44:30 +0400 |
| commit | ce0d06d9215fc8ea75af61a2ecdb6144de04b4f3 (patch) | |
| tree | 87d3d311248a13b203304be7f83125c9e506ebb8 /ospfd/ospf_route.c | |
| parent | 9be555f8d4fb7e11796f9276bb1d2e06f52ed30b (diff) | |
ospfd: ospf_route.c memory leak fix
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>
Diffstat (limited to 'ospfd/ospf_route.c')
| -rw-r--r-- | ospfd/ospf_route.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_route.c b/ospfd/ospf_route.c index 75868056ad..cdb1eb0095 100644 --- a/ospfd/ospf_route.c +++ b/ospfd/ospf_route.c @@ -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 ; |
