mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
crypto: dispose persistent properties on class destruction
This commit is contained in:
committed by
Ben Noordhuis
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:
|
||||
|
||||
Reference in New Issue
Block a user