joyent/node — pull request #5638 by indutny (2013-06-07 11:34:15+00:00)
Title: 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.

/cc @bnoordhuis @trevnorris