Skip to content

Commit 8ccd538

Browse files
authored
Merge pull request #17192 from donaldsharp/bgp_bmp_stream_leak
bgpd: Do not leak a stream with bmp code
2 parents 0078472 + 9adcff1 commit 8ccd538

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bgpd/bgp_bmp.c

+2
Original file line numberDiff line numberDiff line change
@@ -1982,6 +1982,8 @@ static void bmp_bgp_peer_vrf(struct bmp_bgp_peer *bbpeer, struct bgp *bgp)
19821982

19831983
bbpeer->open_tx_len = open_len;
19841984
bbpeer->open_tx = bbpeer->open_rx;
1985+
1986+
stream_free(s);
19851987
}
19861988

19871989
/* update the vrf status of the bmpbgp struct for vrf peer up/down

0 commit comments

Comments
 (0)