Skip to content

Commit

Permalink
tls_wrap: fix BIO leak on SSL error
Browse files Browse the repository at this point in the history
Fix: #1075
PR-URL: #1244
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
indutny committed Mar 25, 2015
1 parent 2db758c commit e74b5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tls_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e74b5d2

Please sign in to comment.