Possible Thrift memory leak
authorMark Slee <mcslee@apache.org>
Fri, 24 Aug 2007 19:24:10 +0000 (19:24 +0000)
committerMark 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

index 4ca1083..be70f47 100644 (file)
@@ -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