summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2015-02-26 21:56:04 +0000
committerAlan Conway <aconway@apache.org>2015-02-26 21:56:04 +0000
commit56d4e4fe39c3f7841c6245becfbead14996f25e5 (patch)
tree37388b6c79709ece0ebed0fad31cfefa68f06c87
parent4140b2c9a713f12667d02ce7a84a257b754a2329 (diff)
downloadqpid-python-56d4e4fe39c3f7841c6245becfbead14996f25e5.tar.gz
QPID-6415: Core dump in ha_tests and interlink_tests with proton 0.9
With proton 0.9 you need call pn_connectin_free before pn_transport_free. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.32@1662580 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/src/qpid/messaging/amqp/ConnectionContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/messaging/amqp/ConnectionContext.cpp b/qpid/cpp/src/qpid/messaging/amqp/ConnectionContext.cpp
index a0b16c2b4c..6630ea2e0d 100644
--- a/qpid/cpp/src/qpid/messaging/amqp/ConnectionContext.cpp
+++ b/qpid/cpp/src/qpid/messaging/amqp/ConnectionContext.cpp
@@ -543,8 +543,8 @@ pn_state_t IS_CLOSED = PN_LOCAL_CLOSED | PN_REMOTE_CLOSED;
void ConnectionContext::reset()
{
- pn_transport_free(engine);
pn_connection_free(connection);
+ pn_transport_free(engine);
engine = pn_transport();
connection = pn_connection();