mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 19:35:13 +00:00
ospfd: opsf_abr.c memory leak fix, free range
The new create range attribute is send to add to ranges, but not use if the prefix already exist in the ranges. Signed-off-by: ryndia <dindyalsarvesh@gmail.com>
This commit is contained in:
parent
911bfbf5f1
commit
c824d9792e
@ -66,9 +66,11 @@ static void ospf_area_range_add(struct ospf_area *area,
|
|||||||
apply_mask_ipv4(&p);
|
apply_mask_ipv4(&p);
|
||||||
|
|
||||||
rn = route_node_get(ranges, (struct prefix *)&p);
|
rn = route_node_get(ranges, (struct prefix *)&p);
|
||||||
if (rn->info)
|
if (rn->info) {
|
||||||
route_unlock_node(rn);
|
route_unlock_node(rn);
|
||||||
else
|
ospf_area_range_free(rn->info);
|
||||||
|
rn->info = range;
|
||||||
|
} else
|
||||||
rn->info = range;
|
rn->info = range;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user