commit | f322d917fb1f1465049ed29853081ef47ca16800 | [log] [tgz] |
---|---|---|
author | Jens Geyer <jensg@apache.org> | Thu Nov 28 21:15:17 2013 +0100 |
committer | Jens Geyer <jensg@apache.org> | Thu Nov 28 21:15:17 2013 +0100 |
tree | c7603cfd8b02affd548f41ae578eb45ec3fdfa7e | |
parent | 4b4f42b45b85f20dacaea0a724070ad8b82b8988 [diff] |
THRIFT-2275 Fix memory leak in golang compact_protocol. Patch: bolin huang
diff --git a/lib/go/thrift/compact_protocol.go b/lib/go/thrift/compact_protocol.go index 74d36d0..f89fc2f 100644 --- a/lib/go/thrift/compact_protocol.go +++ b/lib/go/thrift/compact_protocol.go
@@ -352,6 +352,7 @@ func (p *TCompactProtocol) ReadStructEnd() error { // consume the last field we read off the wire. p.lastFieldId = p.lastField[len(p.lastField)-1] + p.lastField = p.lastField[:len(p.lastField)-1] return nil }