diff --git a/src/node_crypto.h b/src/node_crypto.h index 6432654be2d..fd286e640a5 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -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: