From d2131b74061801936f7f17f8714309aa45981980 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 23 Oct 2014 22:32:41 +0200 Subject: [PATCH] src: mark SSLWrap destructor as virtual Like the previous commit but this time for the SSLWrap destructor. --- src/node_crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.h b/src/node_crypto.h index 3c78ed6744..4d2b9cec07 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -164,7 +164,7 @@ class SSLWrap { CHECK_NE(ssl_, nullptr); } - ~SSLWrap() { + virtual ~SSLWrap() { if (ssl_ != nullptr) { SSL_free(ssl_); ssl_ = nullptr;