mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
crypto: dispose persistent properties on class destruction
This commit is contained in:
1 parent
799c7bdcb6
commit
759fb36df3
1 file changed
+5
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user