diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 63d0d1073c..ccccd0ad68 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -1575,12 +1575,15 @@ static_delete_ipv4 (struct prefix *p, struct in_addr *gate, char *ifname, rn->info = si->next; if (si->next) si->next->prev = si->prev; + route_unlock_node (rn); /* Free static route configuration. */ if (ifname) XFREE (0, si->gate.ifname); XFREE (MTYPE_STATIC_IPV4, si); + route_unlock_node (rn); + return 1; }