Skip to content

Commit

Permalink
Merge pull request #14550 from Keelan10/fix-nexthop_group-leak
Browse files Browse the repository at this point in the history
zebra: Free nexthop_group
  • Loading branch information
donaldsharp authored Oct 10, 2023
2 parents 69a0d59 + 92598cb commit 078bef3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zebra/redistribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 078bef3

Please sign in to comment.