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
Fedor Indutny 2015-03-23 20:07:03 -07:00
parent 2db758c562
commit e74b5d278c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}