Merge pull request #14550 from Keelan10/fix-nexthop_group-leak

zebra: Free nexthop_group
This commit is contained in:
Donald Sharp 2023-10-10 10:11:48 -04:00 committed by GitHub
commit 078bef324c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}