qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [1/4] qpid-dispatch git commit: DISPACH-739: Fix incorrect use of pointer after decref
Date Thu, 20 Apr 2017 14:10:35 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 6a1e66322 -> 0fb5b54d1


DISPACH-739: Fix incorrect use of pointer after decref


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

Branch: refs/heads/master
Commit: 77aea8e5d773a34153338fb74c2fd986c6c9f0cc
Parents: 0debb58
Author: Alan Conway <aconway@redhat.com>
Authored: Wed Apr 19 17:42:45 2017 -0400
Committer: Alan Conway <aconway@redhat.com>
Committed: Thu Apr 20 08:06:51 2017 -0400

----------------------------------------------------------------------
 src/router_core/connections.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/77aea8e5/src/router_core/connections.c
----------------------------------------------------------------------
diff --git a/src/router_core/connections.c b/src/router_core/connections.c
index b796a00..be437a7 100644
--- a/src/router_core/connections.c
+++ b/src/router_core/connections.c
@@ -734,8 +734,8 @@ static void qdr_link_cleanup_CT(qdr_core_t *core, qdr_connection_t *conn,
qdr_li
         // Account for the lost reference from the Proton delivery
         //
         if (!dlv->cleared_proton_ref) {
-            qdr_delivery_decref_CT(core, dlv);
             dlv->cleared_proton_ref = true;
+            qdr_delivery_decref_CT(core, dlv);
         }
         dlv = DEQ_HEAD(unsettled);
     }


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


Mime
View raw message