You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2015/10/23 16:36:28 UTC

[26/50] [abbrv] qpid-proton git commit: PROTON-1018: release transport context later in transport finalize

PROTON-1018: release transport context later in transport finalize


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

Branch: refs/heads/go1
Commit: aceb43d20ad890e7dd9cd66d66dccec871695076
Parents: d3c53d8
Author: Ken Giusti <kg...@apache.org>
Authored: Thu Oct 15 09:04:43 2015 -0400
Committer: Ken Giusti <kg...@apache.org>
Committed: Thu Oct 15 09:04:43 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/aceb43d2/proton-c/src/transport/transport.c
----------------------------------------------------------------------
diff --git a/proton-c/src/transport/transport.c b/proton-c/src/transport/transport.c
index 8edc9b3..e05aeae 100644
--- a/proton-c/src/transport/transport.c
+++ b/proton-c/src/transport/transport.c
@@ -612,7 +612,6 @@ static void pn_transport_finalize(void *object)
   // we may have posted events, so stay alive until they are processed
   if (pn_refcount(transport) > 0) return;
 
-  pn_free(transport->context);
   pn_ssl_free(transport);
   pn_sasl_free(transport);
   free(transport->remote_container);
@@ -632,6 +631,7 @@ static void pn_transport_finalize(void *object)
   pn_data_free(transport->args);
   pn_data_free(transport->output_args);
   pn_buffer_free(transport->frame);
+  pn_free(transport->context);
   free(transport->output);
 }
 


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