From 662ba9e6f0f32f30290d3b8a786623b54159c9b5 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 2 Aug 2018 22:56:55 -0400 Subject: pimd: Cleanup bfd memory on shutdown When shutting down pim, ensure that we cleanup bfd memory Signed-off-by: Donald Sharp --- pimd/pim_neighbor.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pimd/pim_neighbor.c') 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); } -- cgit v1.2.3