From: Mark Slee Date: Fri, 24 Aug 2007 19:24:10 +0000 (+0000) Subject: Possible Thrift memory leak X-Git-Tag: 0.2.0~1249 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=40c6ac574c0090900736da744ef8cb72340b6c07;p=common%2Fthrift.git 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 4ca10838..be70f476 100644 --- 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