From aaaf082c85d961b522a0f61917c18d503d230ec1 Mon Sep 17 00:00:00 2001 From: Corey Siltala Date: Tue, 26 Nov 2024 10:04:14 -0600 Subject: [PATCH] pimd: Fix access-list memory leak in pimd Reset access-lists in pimd on terminate Signed-off-by: Corey Siltala (cherry picked from commit d21a993f16dc23df6a1f1a7c81e9f562446437a0) --- pimd/pimd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pimd/pimd.c b/pimd/pimd.c index db619748000e..1a9ef0ce4118 100644 --- a/pimd/pimd.c +++ b/pimd/pimd.c @@ -17,6 +17,7 @@ #include "vrf.h" #include "lib_errors.h" #include "bfd.h" +#include "filter.h" #include "pimd.h" #if PIM_IPV == 4 @@ -143,6 +144,7 @@ void pim_terminate(void) prefix_list_add_hook(NULL); prefix_list_delete_hook(NULL); prefix_list_reset(); + access_list_reset(); pim_vxlan_terminate(); pim_vrf_terminate();