mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 13:20:12 +00:00
Merge pull request #13479 from ryndia/fix_leak
[WIP] ospfd: opsf_abr.c memory leak fix, free unused range
This commit is contained in:
commit
c64bac8943
@ -66,9 +66,11 @@ static void ospf_area_range_add(struct ospf_area *area,
|
||||
apply_mask_ipv4(&p);
|
||||
|
||||
rn = route_node_get(ranges, (struct prefix *)&p);
|
||||
if (rn->info)
|
||||
if (rn->info) {
|
||||
route_unlock_node(rn);
|
||||
else
|
||||
ospf_area_range_free(rn->info);
|
||||
rn->info = range;
|
||||
} else
|
||||
rn->info = range;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user