free protocol adaptor before core
@@ -2018,8 +2018,8 @@ void qd_router_free(qd_router_t *router)
qd_container_set_default_node_type(router->qd, 0, 0, QD_DIST_BOTH);
- qdr_core_free(router->router_core);
qdr_protocol_adaptor_free(router->router_core, amqp_direct_adaptor);
+ qdr_core_free(router->router_core);
qd_tracemask_free(router->tracemask);
qd_timer_free(router->timer);
sys_mutex_free(router->lock);
