mirror of https://github.com/nodejs/node.git
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>pull/1265/head
parent
2db758c562
commit
e74b5d278c
|
@ -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…
Reference in New Issue