Fix a memory leak in TBinaryProtocol.
authorDavid Reiss <dreiss@apache.org>
Tue, 1 Apr 2008 04:17:58 +0000 (04:17 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 1 Apr 2008 04:17:58 +0000 (04:17 +0000)
commit58b4fa7e26648cf5251029f6ebb73a4c86129354
treee34d752b8f4a8b0bd5eba0eacfcfe297e125b5b0
parent3000b5b1f1fe44cc8a23ca34540c1de4381ada83
Fix a memory leak in TBinaryProtocol.

Summary:
realloc doesn't free the original pointer when it returns null.

Reviewed By: cpiro

Test Plan: make check

TracCamp Project: Thrift

Revert Plan: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665626 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/protocol/TBinaryProtocol.cpp