Skip to content

Commit

Permalink
pimd: Fix access-list memory leak in pimd
Browse files Browse the repository at this point in the history
Reset access-lists in pimd on terminate

Signed-off-by: Corey Siltala <[email protected]>
(cherry picked from commit d21a993)
  • Loading branch information
Corey Siltala authored and mergify[bot] committed Dec 3, 2024
1 parent 63be9cf commit aaaf082
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pimd/pimd.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "vrf.h"
#include "lib_errors.h"
#include "bfd.h"
#include "filter.h"

#include "pimd.h"
#if PIM_IPV == 4
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit aaaf082

Please sign in to comment.