tls_wrap: fix this incredibly stupid leak
authorFedor Indutny <fedor@indutny.com>
Wed, 25 Mar 2015 03:21:32 +0000 (20:21 -0700)
committerFedor Indutny <fedor@indutny.com>
Wed, 25 Mar 2015 22:51:05 +0000 (17:51 -0500)
commit2ccc8f3970cd1ed78585be37c8d912f3ccf56cd0
treef9c26d3c0a12187edc1f3fd43f8267dbb9c67502
parente74b5d278ca94bf27d16b3fb94cedf4c6fcac3ac
tls_wrap: fix this incredibly stupid leak

Always call `Done` on the WriteWrap, and ensure that `EncOut` will
consume all data in clear_in_ and invoke queued callbacks.

Fix: https://github.com/iojs/io.js/issues/1075
PR-URL: https://github.com/iojs/io.js/pull/1244
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
src/tls_wrap.cc