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
  • Loading branch information
indutny committed Mar 24, 2015
1 parent 7dd5e82 commit 16a13c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tls_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ Local<Value> TLSWrap::GetSSLError(int status, int* err, const char** msg) {
*msg = buf;
}
static_cast<void>(BIO_reset(bio));
BIO_free_all(bio);

return scope.Escape(exception);
}
Expand Down

0 comments on commit 16a13c7

Please sign in to comment.