]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: resolve memory leaks in "show ip bgp neighbor json"
authorDon Slice <dslice@cumulusnetworks.com>
Fri, 16 Sep 2016 16:20:03 +0000 (09:20 -0700)
committerDon Slice <dslice@cumulusnetworks.com>
Mon, 19 Sep 2016 12:19:32 +0000 (05:19 -0700)
commitb6df4090322446a2ee32fc5e2d43d074d34a8f1f
treef51f0dfe24ce4b058d69f9b71062f994c1aba47d
parent87aea55d3436b8cfaf80334c4a498baaef1f0284
bgpd: resolve memory leaks in "show ip bgp neighbor json"

Found several leaks in bgp_show_peer and bgp_show_peer_afi where
json objects are created and then not attached to the parent, causing
them to be leaked.  If not attaching them, freeing the created objects.
Manual testing performed successfully. Fix  tested succesfully by the
submitter and bgp-smoke completed with same failures as base.

Ticket: CM-12846
Signed-off-by: Don Slice
Reviewed-by: CCR-5181
bgpd/bgp_vty.c