tls: fix leak on `DoWrite()` errors
authorFedor Indutny <fedor@indutny.com>
Sat, 14 Mar 2015 04:40:48 +0000 (21:40 -0700)
committerFedor Indutny <fedor@indutny.com>
Sat, 14 Mar 2015 16:27:52 +0000 (09:27 -0700)
commite90ed790c340af01b0b9daa7dec6ff52caccde77
treef835fe3a30dd2130758224b7995b36df7cfa11e7
parent056ed4b0c9753318ce8f5a88659467579acb3faf
tls: fix leak on `DoWrite()` errors

It is very unlikely to happen, but still the write request should be
disposed in case of immediate failure.

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