bgpd: Do not leak a stream with bmp code

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2024-10-22 10:10:46 -04:00
parent fd6f46e9fd
commit 9adcff1890

View File

@ -1982,6 +1982,8 @@ static void bmp_bgp_peer_vrf(struct bmp_bgp_peer *bbpeer, struct bgp *bgp)
bbpeer->open_tx_len = open_len; bbpeer->open_tx_len = open_len;
bbpeer->open_tx = bbpeer->open_rx; bbpeer->open_tx = bbpeer->open_rx;
stream_free(s);
} }
/* update the vrf status of the bmpbgp struct for vrf peer up/down /* update the vrf status of the bmpbgp struct for vrf peer up/down