apache/thrift — pull request #69 by wizardcypress (2013-11-28 10:00:57+00:00)
Title: fix bug in compatc_protocol.go, prevent memory leak

After a long time running on compatct protocol, I found that the memory still increase and never drop.
By using go tool pprof, I found that p.lastField grows and never decrease. So I realized that in function `ReadStructEnd` there should pop the last element to prevent memory leak.