mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 07:15:19 +00:00
bgpd: fix aspath memory leak
We allocate an as-path using bgp_attr_default_set and should free it before exiting the function. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
bf844bac67
commit
ab798674c0
@ -935,6 +935,8 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
|
||||
subgroup_default_update_packet(subgrp, new_attr, from);
|
||||
}
|
||||
}
|
||||
|
||||
aspath_unintern(&attr.aspath);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user