]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Do not leak a stream with bmp code
authorDonald Sharp <sharpd@nvidia.com>
Tue, 22 Oct 2024 14:10:46 +0000 (10:10 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 22 Oct 2024 14:10:46 +0000 (10:10 -0400)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_bmp.c

index 48c5ee7ede94c536db1555176565003a05b8c65d..4d9e580a234bbbcb50b2c2a884be072f80594b44 100644 (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 = bbpeer->open_rx;
+
+       stream_free(s);
 }
 
 /* update the vrf status of the bmpbgp struct for vrf peer up/down