summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-10-22 10:10:46 -0400
committerDonald Sharp <sharpd@nvidia.com>2024-10-22 10:10:46 -0400
commit9adcff1890bd71276b17f55584f01ddc512d9cd2 (patch)
treeeeeb2f4660dab5824fa5213cc4dfb5c4008431f8
parentfd6f46e9fd3122b64bfefe526c3825b2d109ec22 (diff)
bgpd: Do not leak a stream with bmp code
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r--bgpd/bgp_bmp.c2
1 files changed, 2 insertions, 0 deletions
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