diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index 13ba550398bc06..0a6be858038866 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -375,6 +375,7 @@ Local TLSWrap::GetSSLError(int status, int* err, const char** msg) { *msg = buf; } static_cast(BIO_reset(bio)); + BIO_free_all(bio); return scope.Escape(exception); }