commit | 4ae8780c5c1e37c4c480a23f277a7942e3aada09 | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Tue Mar 09 00:49:14 2010 +0000 |
committer | David Reiss <dreiss@apache.org> | Tue Mar 09 00:49:14 2010 +0000 |
tree | b4af0631a81b83a4fec3bd43ace98dd030e60e52 | |
parent | 53c10e09e15b446e7213b341e8fddc79296f1d51 [diff] [blame] |
THRIFT-706. cpp: Fix memory leak of string_buf_ in TCompactProtocol git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920597 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/protocol/TCompactProtocol.h b/lib/cpp/src/protocol/TCompactProtocol.h index b4e06f0..1d940a2 100644 --- a/lib/cpp/src/protocol/TCompactProtocol.h +++ b/lib/cpp/src/protocol/TCompactProtocol.h
@@ -109,6 +109,9 @@ boolValue_.hasBoolValue = false; } + ~TCompactProtocol() { + free(string_buf_); + } /**