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 | 6e403d50b2f88a04b04f018ad7c2dc9f492920a9 (patch) | |
| tree | 7b5d9bd725154aaaddcde3189e86dd2bcbf6696b /qpid/cpp/src | |
| parent | 55c2d83286aef546d0aaa3e3ecaf323a70abe0b7 (diff) | |
| download | qpid-python-6e403d50b2f88a04b04f018ad7c2dc9f492920a9.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@1650389 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp | 2 | ||||
| -rw-r--r-- | qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp b/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp index 08cc130a9e..5e0707056f 100644 --- a/qpid/cpp/src/qpid/messaging/amqp/ReceiverContext.cpp +++ b/qpid/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/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp b/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp index 1a254c1846..421b177163 100644 --- a/qpid/cpp/src/qpid/messaging/amqp/SenderContext.cpp +++ b/qpid/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() |
