mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 23:09:34 +00:00
bgpd: repalce direct calls to system memory functions
Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
fb1d2a2d97
commit
2f98bf4770
@ -4559,8 +4559,8 @@ bgp_static_set_safi (afi_t afi, safi_t safi, struct vty *vty, const char *ip_str
|
|||||||
if (rmap_str)
|
if (rmap_str)
|
||||||
{
|
{
|
||||||
if (bgp_static->rmap.name)
|
if (bgp_static->rmap.name)
|
||||||
free (bgp_static->rmap.name);
|
XFREE(MTYPE_ROUTE_MAP_NAME, bgp_static->rmap.name);
|
||||||
bgp_static->rmap.name = strdup (rmap_str);
|
bgp_static->rmap.name = XSTRDUP(MTYPE_ROUTE_MAP_NAME, rmap_str);
|
||||||
bgp_static->rmap.map = route_map_lookup_by_name (rmap_str);
|
bgp_static->rmap.map = route_map_lookup_by_name (rmap_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user