diff --git a/src/node_crypto.h b/src/node_crypto.h index 56055a93b14..2d2b00a3261 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -267,7 +267,6 @@ class Connection : public SSLWrap, public ObjectWrap { : SSLWrap(sc, kind), hello_offset_(0) { bio_read_ = bio_write_ = NULL; - ssl_ = NULL; hello_parser_.Start(SSLWrap::OnClientHello, OnClientHelloParseEnd, this); @@ -275,11 +274,6 @@ class Connection : public SSLWrap, public ObjectWrap { } ~Connection() { - if (ssl_ != NULL) { - SSL_free(ssl_); - ssl_ = NULL; - } - #ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB sniObject_.Dispose(); sniContext_.Dispose();