diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2023-10-10 16:11:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-10 16:11:48 +0200 |
commit | 078bef324c899070e44fb335c622f6b4bc1e784c (patch) | |
tree | 6468f60a6fb48f351bbbbda6ca324d7377799479 | |
parent | Merge pull request #14451 from m-varasteh/ospf-coverity-issues (diff) | |
parent | zebra: Free nexthop_group (diff) | |
download | frr-078bef324c899070e44fb335c622f6b4bc1e784c.tar.xz frr-078bef324c899070e44fb335c622f6b4bc1e784c.zip |
Merge pull request #14550 from Keelan10/fix-nexthop_group-leak
zebra: Free nexthop_group
-rw-r--r-- | zebra/redistribute.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/redistribute.c b/zebra/redistribute.c index 463c903da..4069f7dd7 100644 --- a/zebra/redistribute.c +++ b/zebra/redistribute.c @@ -682,6 +682,7 @@ int zebra_add_import_table_entry(struct zebra_vrf *zvrf, struct route_node *rn, copy_nexthops(&ng->nexthop, re->nhe->nhg.nexthop, NULL); rib_add_multipath(afi, SAFI_UNICAST, &p, NULL, newre, ng, false); + nexthop_group_delete(&ng); return 0; } |