You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2017/11/20 14:09:22 UTC

qpid-dispatch git commit: DISPATCH-881: Add missing delivery decref when presettled. Related to github patch #213

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 052d60d40 -> bbd6be1fe


DISPATCH-881: Add missing delivery decref when presettled.
Related to github patch #213

This closes #222


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/bbd6be1f
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/bbd6be1f
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/bbd6be1f

Branch: refs/heads/master
Commit: bbd6be1fe429938abff3596fafba0041e1aae48e
Parents: 052d60d
Author: Kenneth Giusti <kg...@apache.org>
Authored: Fri Nov 17 21:27:59 2017 -0500
Committer: Kenneth Giusti <kg...@apache.org>
Committed: Mon Nov 20 09:03:34 2017 -0500

----------------------------------------------------------------------
 src/router_node.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/bbd6be1f/src/router_node.c
----------------------------------------------------------------------
diff --git a/src/router_node.c b/src/router_node.c
index c447783..e6081a8 100644
--- a/src/router_node.c
+++ b/src/router_node.c
@@ -471,7 +471,7 @@ static void AMQP_rx_handler(void* context, qd_link_t *link)
         qd_message_free(msg);
         return;
     }
-    
+
     if (anonymous_link) {
         qd_iterator_t *addr_iter = 0;
         int phase = 0;
@@ -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;
             }
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org