From 40c6ac574c0090900736da744ef8cb72340b6c07 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Fri, 24 Aug 2007 19:24:10 +0000 Subject: [PATCH] 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 --- lib/cpp/src/transport/TTransportUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.17.1