Skip to content

Commit 4f9b1a6

Browse files
committed
ldpd: Free up leaked prefix-list memory on shutdown
On shutdown the prefix-list memory was being leaked clean it up. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
1 parent 3c38ea6 commit 4f9b1a6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ldpd/ldpd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include "lib_errors.h"
3838
#include "zlog_recirculate.h"
3939
#include "libagentx.h"
40+
#include "plist.h"
4041

4142
static void ldpd_shutdown(void);
4243
static pid_t start_child(enum ldpd_process, char *, int, int, int);
@@ -374,6 +375,7 @@ main(int argc, char *argv[])
374375
libagentx_init();
375376
vrf_init(NULL, NULL, NULL, NULL);
376377
access_list_init();
378+
prefix_list_init();
377379
ldp_vty_init();
378380
ldp_zebra_init(master);
379381

@@ -497,6 +499,7 @@ static FRR_NORETURN void ldpd_shutdown(void)
497499

498500
vrf_terminate();
499501
access_list_reset();
502+
prefix_list_reset();
500503
ldp_zebra_destroy();
501504

502505
frr_fini();

0 commit comments

Comments
 (0)