Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3f808ab
)
Possible Thrift memory leak
author
Mark Slee
<mcslee@apache.org>
Fri, 24 Aug 2007 19:24:10 +0000
(19:24 +0000)
committer
Mark Slee
<mcslee@apache.org>
Fri, 24 Aug 2007 19:24:10 +0000
(19:24 +0000)
Summary: Don't throw new Exception, just throw Exception
Reviewed By: mcslee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665223
13f79535
-47bb-0310-9956-
ffa450edef68
lib/cpp/src/transport/TTransportUtils.cpp
patch
|
blob
|
history
diff --git
a/lib/cpp/src/transport/TTransportUtils.cpp
b/lib/cpp/src/transport/TTransportUtils.cpp
index
4ca1083
..
be70f47
100644
(file)
--- a/
lib/cpp/src/transport/TTransportUtils.cpp
+++ b/
lib/cpp/src/transport/TTransportUtils.cpp
@@
-114,7
+114,7
@@
void TFramedTransport::readFrame() {
sz = (int32_t)ntohl(sz);
if (sz < 0) {
- throw
new
TTransportException("Frame size has negative value");
+ throw TTransportException("Frame size has negative value");
}
// Read the frame payload, reset markers