crypto: free excessive memory in NodeBIO
authorFedor Indutny <fedor.indutny@gmail.com>
Fri, 7 Jun 2013 11:31:24 +0000 (15:31 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Sat, 8 Jun 2013 11:40:57 +0000 (15:40 +0400)
commit9ae1d182ba98629ac7c7b9100022ac93133494b7
tree3e989db1f9f1c59ce2f72a4d861e80e666a835ea
parent4bb4f734b3dc3cd42ffd7c5d128fec2abd6b97dd
crypto: free excessive memory in NodeBIO

Before this commit NodeBIO never shrank, possibly consuming a lot of
memory (depending on reader's haste).

All buffers between write_head's child and read_head should be
deallocated on read, leaving only space left in write_head and in the
next buffer.
src/node_crypto_bio.cc
src/node_crypto_bio.h