commit | b3eeabee657df14509ce50d5f64262b672e87d62 | [log] [tgz] |
---|---|---|
author | Donald Sharp <sharpd@cumulusnetworks.com> | Wed Sep 16 13:17:56 2015 -0400 |
committer | Paul Jakma <paul@quagga.net> | Thu Sep 24 15:26:44 2015 +0100 |
tree | 81b2a1382e84f4c0754c6c3814222b90106f04b5 | |
parent | 104576dcafe356985326b2950bfc50962702b4fb [diff] |
bgpd: Fix 'struct peer' memory leaks peer_delete has been written to handle the peer->group pointer and to remove the peer from the peer group if it exists upon deletion being called. Shutdown/deletion Code was intentionally setting the peer-group to NULL prior to calling peer_delete. This leaked the memory associated with the peer->group because of refcnt accounting. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>