summaryrefslogtreecommitdiffstats
path: root/pimd/pim_neighbor.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-03 04:56:55 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-08-03 04:56:55 +0200
commit662ba9e6f0f32f30290d3b8a786623b54159c9b5 (patch)
tree71821db32fa521f2b1c549d61031eaefdd37e0a5 /pimd/pim_neighbor.c
parentpimd: Fix crash on shutdown in oil (diff)
downloadfrr-662ba9e6f0f32f30290d3b8a786623b54159c9b5.tar.xz
frr-662ba9e6f0f32f30290d3b8a786623b54159c9b5.zip
pimd: Cleanup bfd memory on shutdown
When shutting down pim, ensure that we cleanup bfd memory Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_neighbor.c')
-rw-r--r--pimd/pim_neighbor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_neighbor.c b/pimd/pim_neighbor.c
index 2730f5e7a..e73422331 100644
--- a/pimd/pim_neighbor.c
+++ b/pimd/pim_neighbor.c
@@ -409,6 +409,9 @@ void pim_neighbor_free(struct pim_neighbor *neigh)
list_delete_and_null(&neigh->upstream_jp_agg);
THREAD_OFF(neigh->jp_timer);
+ if (neigh->bfd_info)
+ pim_bfd_info_free(&neigh->bfd_info);
+
XFREE(MTYPE_PIM_NEIGHBOR, neigh);
}