]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Fix memory leak when creating BMP connection with a source interface 17680/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 19 Dec 2024 08:56:52 +0000 (10:56 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 19 Dec 2024 21:56:16 +0000 (21:56 +0000)
commit5d0cef584f3d1910fc64f18ec69461e78d5d319f
tree427c6e7d6fbce028d87c5841a4f00dcdbcd19ace
parentcbe7fc3a98b90a6454e867ab34c62d45ce091b6b
bgpd: Fix memory leak when creating BMP connection with a source interface

Testing done with:

```
for x in $(seq 1 100000); do vtysh -c 'conf' -c 'router bgp' -c 'bmp targets test' -c 'bmp connect localhost port 123 min-retry 100 max-retry 100 source-interface lo'; done
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 7d19cb59cf5b129f61f3c568899343b3f031f9b4)
bgpd/bgp_bmp.c