Browse Source

tls_wrap: fix BIO leak on SSL error

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>
v1.8.0-commit
Fedor Indutny 10 years ago
parent
commit
e74b5d278c
  1. 2
      src/tls_wrap.cc

2
src/tls_wrap.cc

@ -374,7 +374,7 @@ Local<Value> TLSWrap::GetSSLError(int status, int* err, const char** msg) {
buf[mem->length] = '\0';
*msg = buf;
}
static_cast<void>(BIO_reset(bio));
BIO_free_all(bio);
return scope.Escape(exception);
}

Loading…
Cancel
Save