mirror of https://github.com/nodejs/node.git
crypto: dispose persistent properties on class destruction
parent
799c7bdcb6
commit
759fb36df3
|
@ -157,6 +157,11 @@ class Connection : ObjectWrap {
|
|||
SSL_free(ssl_);
|
||||
ssl_ = NULL;
|
||||
}
|
||||
|
||||
#ifdef OPENSSL_NPN_NEGOTIATED
|
||||
if (!npnProtos_.IsEmpty()) npnProtos_.Dispose();
|
||||
if (!selectedNPNProto_.IsEmpty()) selectedNPNProto_.Dispose();
|
||||
#endif
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue