Add missing delivery decref when presettled.
Related to github patch
This closes
@@ -543,6 +543,7 @@ static void AMQP_rx_handler(void* context, qd_link_t *link)
if (pn_delivery_settled(pnd)) {
if (receive_complete) {
pn_delivery_settle(pnd);
+ qdr_delivery_decref(router->router_core, delivery, "release protection of return from deliver");
return;
}
}
