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 <csiltala@atcorp.com>
  • Loading branch information
Corey Siltala committed Nov 26, 2024
1 parent 842da0d commit d21a993
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 @@ -147,6 +148,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 d21a993

Please sign in to comment.