mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-05 17:17:36 +00:00
Merge pull request #1030 from opensourcerouting/bgpd-fd-leak
bgpd: fix file descriptor leak
This commit is contained in:
commit
e1b9b080b8
@ -3087,6 +3087,8 @@ int bgp_delete(struct bgp *bgp)
|
|||||||
* routes to be processed still referencing the struct bgp.
|
* routes to be processed still referencing the struct bgp.
|
||||||
*/
|
*/
|
||||||
listnode_delete(bm->bgp, bgp);
|
listnode_delete(bm->bgp, bgp);
|
||||||
|
if (list_isempty(bm->bgp))
|
||||||
|
bgp_close();
|
||||||
|
|
||||||
/* Deregister from Zebra, if needed */
|
/* Deregister from Zebra, if needed */
|
||||||
if (IS_BGP_INST_KNOWN_TO_ZEBRA(bgp))
|
if (IS_BGP_INST_KNOWN_TO_ZEBRA(bgp))
|
||||||
|
Loading…
Reference in New Issue
Block a user