From 16a13c7bfc3447531ad790b478b9bcdb62c85ca3 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Mon, 23 Mar 2015 20:07:03 -0700 Subject: [PATCH] tls_wrap: fix BIO leak on SSL error Fix: https://github.com/iojs/io.js/issues/1075 --- src/tls_wrap.cc | 1 + 1 file changed, 1 insertion(+) 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); }