summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2016-03-09 17:14:39 -0800
committerMark Spruiell <mes@zeroc.com>2016-03-09 17:14:39 -0800
commit1ff3ae7d45c081aeff4d0295f77c3406a78af326 (patch)
tree9b5fd36df11743d6866f7174d19701e5add4051a /cpp/src
parentICE-6852 - allow OutputStream to marshal to user-supplied buffer (diff)
downloadice-1ff3ae7d45c081aeff4d0295f77c3406a78af326.tar.bz2
ice-1ff3ae7d45c081aeff4d0295f77c3406a78af326.tar.xz
ice-1ff3ae7d45c081aeff4d0295f77c3406a78af326.zip
c++11-compatible fix for leak in Outgoing
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/Outgoing.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Ice/Outgoing.cpp b/cpp/src/Ice/Outgoing.cpp
index c97d5cb3d16..d1e91bbe85f 100644
--- a/cpp/src/Ice/Outgoing.cpp
+++ b/cpp/src/Ice/Outgoing.cpp
@@ -501,7 +501,8 @@ Outgoing::completed(InputStream& is)
ex->id = ident;
ex->facet = facet;
ex->operation = operation;
- ICE_RESET_EXCEPTION(_exception, ex);
+ ICE_RESET_EXCEPTION(_exception, ex->ice_clone());
+ delete ex;
_state = StateLocalException; // The state must be set last, in case there is an exception.
break;
}