diff options
| author | Charles E. Rolke <chug@apache.org> | 2015-01-08 21:51:49 +0000 |
|---|---|---|
| committer | Charles E. Rolke <chug@apache.org> | 2015-01-08 21:51:49 +0000 |
| commit | ebb32c13c0e77faef5b9aa0940a0e6810242ed24 (patch) | |
| tree | 1ec9a3dbbb7058799e715c186440bf43847d392a /cpp | |
| parent | 72e6faac839b599d36135aa5078bf8a33afb96d6 (diff) | |
| download | qpid-python-ebb32c13c0e77faef5b9aa0940a0e6810242ed24.tar.gz | |
QPID-6298: [C++ Messaging] Closing sender/receiver frees proton link.
Tested with proton 0.9, 0.7, and 0.6.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1650389 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/src/qpid/messaging/amqp/ReceiverContext.cpp | 2 | ||||
| -rw-r--r-- | cpp/src/qpid/messaging/amqp/SenderContext.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp b/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp index 08cc130a9e..5e0707056f 100644 --- a/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp +++ b/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp @@ -39,7 +39,7 @@ ReceiverContext::ReceiverContext(pn_session_t* session, const std::string& n, co capacity(0), used(0) {} ReceiverContext::~ReceiverContext() { - //pn_link_free(receiver); + pn_link_free(receiver); } void ReceiverContext::setCapacity(uint32_t c) diff --git a/cpp/src/qpid/messaging/amqp/SenderContext.cpp b/cpp/src/qpid/messaging/amqp/SenderContext.cpp index 1a254c1846..421b177163 100644 --- a/cpp/src/qpid/messaging/amqp/SenderContext.cpp +++ b/cpp/src/qpid/messaging/amqp/SenderContext.cpp @@ -49,7 +49,7 @@ SenderContext::SenderContext(pn_session_t* session, const std::string& n, const SenderContext::~SenderContext() { - //pn_link_free(sender); + pn_link_free(sender); } void SenderContext::close() |
