]> git.puffer.fish Git - matthieu/frr.git/commit
Fixup of peer memory leaks in bgp
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 22 Jul 2015 19:35:38 +0000 (12:35 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 22 Jul 2015 19:35:38 +0000 (12:35 -0700)
commit28066f4bccdd5449908e97af4465b73202d7256f
treef0f42c48c912b41b1c4615e07354bf454d981334
parentb354c427e18c595c71d497a38aa984ae244228eb
Fixup of peer memory leaks in bgp

When deleting a set of peers, the peer->group pointer was being set to NULL
and then passed into peer_delete.

peer_delete has functionality to safely remove the peer->group structure if it
non-null and to remove the peer->group if it's refcnt reaches zero.

This is a day one bug in the quagga source tree.
bgpd/bgpd.c
bgpd/bgpd.h