summaryrefslogtreecommitdiffstats
path: root/eigrpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-10-29 00:56:34 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-10-29 00:56:34 +0200
commit052fe05405f5a6df2573a296c89f42a1d703eca7 (patch)
treeb2c29fb11aa8f0a2259a7fb0eeca0716acece9f5 /eigrpd
parenteigrpd: Fix an issue found with metric change (diff)
downloadfrr-052fe05405f5a6df2573a296c89f42a1d703eca7.tar.xz
frr-052fe05405f5a6df2573a296c89f42a1d703eca7.zip
eigrpd: On shutdown, delete list after we've cleared prefixes
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd')
-rw-r--r--eigrpd/eigrpd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/eigrpd/eigrpd.c b/eigrpd/eigrpd.c
index 42d398458..fd7a23323 100644
--- a/eigrpd/eigrpd.c
+++ b/eigrpd/eigrpd.c
@@ -284,14 +284,15 @@ void eigrp_finish_final(struct eigrp *eigrp)
list_delete_and_null(&eigrp->eiflist);
list_delete_and_null(&eigrp->oi_write_q);
- list_delete_and_null(&eigrp->topology_changes_externalIPV4);
- list_delete_and_null(&eigrp->topology_changes_internalIPV4);
eigrp_topology_cleanup(eigrp->topology_table);
eigrp_topology_free(eigrp->topology_table);
eigrp_nbr_delete(eigrp->neighbor_self);
+ list_delete_and_null(&eigrp->topology_changes_externalIPV4);
+ list_delete_and_null(&eigrp->topology_changes_internalIPV4);
+
eigrp_delete(eigrp);
XFREE(MTYPE_EIGRP_TOP, eigrp);