qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmur...@apache.org
Subject qpid-dispatch git commit: DISPATCH-582 - Additional fix. Added additional call to delivery decref during link cleanup when processing updated_deliveries
Date Wed, 14 Dec 2016 14:56:56 GMT
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 <gmurthy@redhat.com>
Authored: Wed Dec 14 09:56:40 2016 -0500
Committer: Ganesh Murthy <gmurthy@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


Mime
View raw message