You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gm...@apache.org on 2016/12/14 14:56:56 UTC

qpid-dispatch git commit: DISPATCH-582 - Additional fix. Added additional call to delivery decref during link cleanup when processing updated_deliveries

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 5d214bd05 -> 611e7d6d0


DISPATCH-582 - Additional fix. Added additional call to delivery decref during link cleanup when processing updated_deliveries


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

Branch: refs/heads/master
Commit: 611e7d6d078d1078d8e53b711285539506e536ea
Parents: 5d214bd
Author: Ganesh Murthy <gm...@redhat.com>
Authored: Wed Dec 14 09:56:40 2016 -0500
Committer: Ganesh Murthy <gm...@redhat.com>
Committed: Wed Dec 14 09:56:40 2016 -0500

----------------------------------------------------------------------
 src/router_core/connections.c | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/611e7d6d/src/router_core/connections.c
----------------------------------------------------------------------
diff --git a/src/router_core/connections.c b/src/router_core/connections.c
index 041e885..ddcde3c 100644
--- a/src/router_core/connections.c
+++ b/src/router_core/connections.c
@@ -492,6 +492,12 @@ static void qdr_link_cleanup_CT(qdr_core_t *core, qdr_connection_t *conn, qdr_li
     qdr_delivery_ref_t *ref = DEQ_HEAD(updated_deliveries);
     while (ref) {
         qdr_delivery_decref(ref->dlv);
+
+        //
+        // Account for the lost reference from the Proton delivery
+        //
+        qdr_delivery_decref(ref->dlv);
+
         qdr_del_delivery_ref(&updated_deliveries, ref);
         ref = DEQ_HEAD(updated_deliveries);
     }


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