]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_ecommunity.c
bgpd: XREALLOC handles NULL properly
authorDonald Sharp <sharpd@nvidia.com>
Mon, 12 Jul 2021 23:32:42 +0000 (19:32 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 12 Jul 2021 23:32:42 +0000 (19:32 -0400)
commit0b04fa0e78eef6b458b0ab40a9473691cd56b64c
treea589cf80a267ab2266670af91344e735584054de
parent507559a089a7ba539b90c4bb1cd0410a4b4b1345
bgpd: XREALLOC handles NULL properly

the realloc man page:

If ptr is NULL, then the call is equivalent to malloc(size)

This should be sufficient for our needs to not have to have
XMALLOC and XREALLOC

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_attr.c
bgpd/bgp_community.c
bgpd/bgp_ecommunity.c
bgpd/bgp_lcommunity.c
bgpd/bgpd.c