qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject [26/50] [abbrv] qpid-proton git commit: PROTON-1018: release transport context later in transport finalize
Date Fri, 23 Oct 2015 14:36:28 GMT
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 <kgiusti@apache.org>
Authored: Thu Oct 15 09:04:43 2015 -0400
Committer: Ken Giusti <kgiusti@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


Mime
View raw message