Avoid unnecessary memory reallocations
authorFilipe David Manana <fdmanana@apache.org>
Sat, 26 Mar 2011 02:00:22 +0000 (02:00 +0000)
committerFilipe David Manana <fdmanana@apache.org>
Sat, 26 Mar 2011 02:00:22 +0000 (02:00 +0000)
commit8cd61eb38a5f8cd96c2b884114c5c4381cbf4b8e
tree98a4ec865d45b49cbfb49383584da1411c135ac9
parent9605e351fc43f88aed260190341ef4b79fe21ccc
Avoid unnecessary memory reallocations

Before increasing the size of the buffer, it wasn't verified if there was
still room left for the new compressed data chunk.
c_src/snappy.cc