mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 09:00:55 +00:00
bgpd: All paths have already de-refed rd_str
Coverity points out that rd_str has already been deref'ed in all paths leading to this spot. No need to keep at it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
7b343a9ed5
commit
852f96eb03
@ -7038,8 +7038,8 @@ int bgp_static_set_safi(afi_t afi, safi_t safi, struct vty *vty,
|
||||
bgp_static->label = label;
|
||||
bgp_static->prd = prd;
|
||||
|
||||
if (rd_str)
|
||||
bgp_static->prd_pretty = XSTRDUP(MTYPE_BGP, rd_str);
|
||||
bgp_static->prd_pretty = XSTRDUP(MTYPE_BGP, rd_str);
|
||||
|
||||
if (rmap_str) {
|
||||
XFREE(MTYPE_ROUTE_MAP_NAME, bgp_static->rmap.name);
|
||||
route_map_counter_decrement(bgp_static->rmap.map);
|
||||
|
Loading…
Reference in New Issue
Block a user