We were prematurely deleting the bgp->address_hash.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
/* Free interfaces in this instance. */
bgp_if_finish (bgp);
- bgp_address_destroy (bgp);
-
thread_master_free_unused(bm->master);
bgp_unlock(bgp); /* initial reference */
bgp_table_finish (&bgp->rib[afi][safi]);
}
+ bgp_address_destroy (bgp);
+
/* If Default instance or VRF, unlink from the VRF structure. */
vrf = bgp_vrf_lookup_by_instance_type (bgp);
if (vrf)