From 9adcff1890bd71276b17f55584f01ddc512d9cd2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 22 Oct 2024 10:10:46 -0400 Subject: [PATCH] bgpd: Do not leak a stream with bmp code Signed-off-by: Donald Sharp --- bgpd/bgp_bmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bgpd/bgp_bmp.c b/bgpd/bgp_bmp.c index 48c5ee7ede..4d9e580a23 100644 --- a/bgpd/bgp_bmp.c +++ b/bgpd/bgp_bmp.c @@ -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 = bbpeer->open_rx; + + stream_free(s); } /* update the vrf status of the bmpbgp struct for vrf peer up/down