commit | 40c6ac574c0090900736da744ef8cb72340b6c07 | [log] [tgz] |
---|---|---|
author | Mark Slee <mcslee@apache.org> | Fri Aug 24 19:24:10 2007 +0000 |
committer | Mark Slee <mcslee@apache.org> | Fri Aug 24 19:24:10 2007 +0000 |
tree | 4e81f0b10d9e652fcbe8910cf021c9888bbe913f | |
parent | 3f808ab33787044e149fb25d1c6c6c18811afde9 [diff] |
Possible Thrift memory leak 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
diff --git a/lib/cpp/src/transport/TTransportUtils.cpp b/lib/cpp/src/transport/TTransportUtils.cpp index 4ca1083..be70f47 100644 --- a/lib/cpp/src/transport/TTransportUtils.cpp +++ b/lib/cpp/src/transport/TTransportUtils.cpp
@@ -114,7 +114,7 @@ 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