Moved freeing of pn_link after the event batch completion. This closes
@@ -618,7 +618,7 @@ void qd_container_handle_event(qd_container_t *container, pn_event_t *event,
node->ntype->link_detach_handler(node->context, qd_link, dt);
}
} else {
- pn_link_free(pn_link);
+ add_link_to_free_list(&qd_conn->free_link_session_list, pn_link);
}
}
break;
