When shutting down bgp we were freeing the ecommunity hash
before we unintern'ed everything in it.
This is fallout from:
289d250 bgpd, lib: memory cleanups for valgrind, plus debug changes
Basically we started free'ing data we've never freed before
which caused us to access a hash that had already been freed.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgp_delete (bgp);
list_free (bm->bgp);
- /* reverse bgp_attr_init */
- bgp_attr_finish ();
-
/* reverse bgp_dump_init */
bgp_dump_finish ();
/* cleanup route maps */
bgp_route_map_terminate();
+ /* reverse bgp_attr_init */
+ bgp_attr_finish ();
+
/* reverse access_list_init */
access_list_add_hook (NULL);
access_list_delete_hook (NULL);