Skip to content

Commit

Permalink
Merge pull request #14792 from mobash-rasool/fixes2
Browse files Browse the repository at this point in the history
pim6d: Fix memory leaks
  • Loading branch information
donaldsharp authored Nov 15, 2023
2 parents 520bb40 + 7929707 commit 93379c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pimd/pim6_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "pim_nb.h"
#include "pim6_cmd.h"
#include "pim6_mld.h"
#include "pim_zlookup.h"

zebra_capabilities_t _caps_p[] = {
ZCAP_SYS_ADMIN,
Expand Down Expand Up @@ -189,11 +190,20 @@ int main(int argc, char **argv, char **envp)

static void pim6_terminate(void)
{
struct zclient *zclient;

pim_vrf_terminate();
pim_router_terminate();

prefix_list_reset();
access_list_reset();

zclient = pim_zebra_zclient_get();
if (zclient) {
zclient_stop(zclient);
zclient_free(zclient);
}

zclient_lookup_free();
frr_fini();
}

0 comments on commit 93379c0

Please sign in to comment.