diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-03 04:56:55 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-03 04:56:55 +0200 |
commit | 662ba9e6f0f32f30290d3b8a786623b54159c9b5 (patch) | |
tree | 71821db32fa521f2b1c549d61031eaefdd37e0a5 /pimd/pim_neighbor.c | |
parent | pimd: Fix crash on shutdown in oil (diff) | |
download | frr-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.c | 3 |
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); } |