Author: dreiss
Date: Tue Mar 9 00:49:14 2010
New Revision: 920597
URL: http://svn.apache.org/viewvc?rev=920597&view=rev
Log:
THRIFT-706. cpp: Fix memory leak of string_buf_ in TCompactProtocol
Modified:
incubator/thrift/trunk/lib/cpp/src/protocol/TCompactProtocol.h
Modified: incubator/thrift/trunk/lib/cpp/src/protocol/TCompactProtocol.h
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/protocol/TCompactProtocol.h?rev=920597&r1=920596&r2=920597&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/protocol/TCompactProtocol.h (original)
+++ incubator/thrift/trunk/lib/cpp/src/protocol/TCompactProtocol.h Tue Mar 9
00:49:14 2010
@@ -109,6 +109,9 @@
boolValue_.hasBoolValue = false;
}
+ ~TCompactProtocol() {
+ free(string_buf_);
+ }
/**