]> git.proxmox.com Git - mirror_frr.git/commit
eigrpd: Fix massive memory leak
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 6 Apr 2017 00:07:46 +0000 (20:07 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 6 Apr 2017 00:07:46 +0000 (20:07 -0400)
commitf6709c169bf70217414d3ac03b2800274f98dff9
treeb4e0f03cc4662e8bc87642370a863aa06771201f
parent87805f883af1334e2e50c5e3c21da75edddcb979
eigrpd: Fix massive memory leak

Each call into eigrp_topology_get_successors would leak the list
created.  As routes worked their way through the FSM we would
leak memory left and right.

Modify the eigrp_topology_get_successor to return NULL when
there are no SUCCESORS.

Clean up some dead code.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
eigrpd/eigrp_fsm.c
eigrpd/eigrp_topology.c
eigrpd/eigrp_topology.h