Merge pull request #17130 from FRRouting/mergify/bp/stable/10.1/pr-17116

zebra: unlock node only after operation in zebra_free_rnh() (backport #17116)
This commit is contained in:
Donatas Abraitis 2024-10-18 15:18:25 +03:00 committed by GitHub
commit ddce313558
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,10 +220,9 @@ void zebra_free_rnh(struct rnh *rnh)
if (rern) {
rib_dest_t *dest;
route_unlock_node(rern);
dest = rib_dest_from_rnode(rern);
rnh_list_del(&dest->nht, rnh);
route_unlock_node(rern);
}
}
free_state(rnh->vrf_id, rnh->state, rnh->node);