void bgp_table_unlock (struct bgp_table *rt) { assert (rt->lock > 0); rt->lock--; if (rt->lock == 0) bgp_table_free (rt); }
void bgp_table_finish (struct bgp_table **rt) { bgp_table_free (*rt); *rt = NULL; }