cpp: Prevent TFileTransport seekToEnd from leaking memory
authorDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:20:19 +0000 (05:20 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:20:19 +0000 (05:20 +0000)
commit336c29dbbeca40543a028c731be6d5c26aeeb363
tree08468c3b5e5adee97a14735944ca9b1a4f134a7f
parent8af018bf13789a48af8a49827a0d18d26925d73f
cpp: Prevent TFileTransport seekToEnd from leaking memory

In seekToEnd we loop on readEvent to skip through the last chunk, but
the complete events returned are disowned by readState_ and therefore
must be freed by the caller.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920687 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TFileTransport.cpp
lib/cpp/src/transport/TFileTransport.h