mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 08:32:12 +00:00
Merge pull request #14792 from mobash-rasool/fixes2
pim6d: Fix memory leaks
This commit is contained in:
commit
93379c01d1
@ -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,
|
||||
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user