summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/WSTransceiver.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2015-08-05 11:11:41 +0200
committerBenoit Foucher <benoit@zeroc.com>2015-08-05 11:11:41 +0200
commit2e9bbd84219befd7c624cfd542249991d7d4d1c2 (patch)
treef8e9cbeb845f7a45941710978248d1adbc211412 /cpp/src/Ice/WSTransceiver.cpp
parentTest script env fixes (diff)
downloadice-2e9bbd84219befd7c624cfd542249991d7d4d1c2.tar.bz2
ice-2e9bbd84219befd7c624cfd542249991d7d4d1c2.tar.xz
ice-2e9bbd84219befd7c624cfd542249991d7d4d1c2.zip
Fixed ICE-6159: release memory allocated by connection buffers when the connection is closed instead of waiting for the reaping
Diffstat (limited to 'cpp/src/Ice/WSTransceiver.cpp')
-rw-r--r--cpp/src/Ice/WSTransceiver.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/Ice/WSTransceiver.cpp b/cpp/src/Ice/WSTransceiver.cpp
index ccb3c6c7ff3..a7f85a0e8bd 100644
--- a/cpp/src/Ice/WSTransceiver.cpp
+++ b/cpp/src/Ice/WSTransceiver.cpp
@@ -478,6 +478,12 @@ IceInternal::WSTransceiver::close()
{
_delegate->close();
_state = StateClosed;
+
+ //
+ // Clear the buffers now instead of waiting for destruction.
+ //
+ _writeBuffer.b.clear();
+ _readBuffer.b.clear();
}
SocketOperation