From 54b1f8028aceff9b3c3adcbe6e41def37dd1b890 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 23 Dec 2010 15:49:55 -0600 Subject: [PATCH] Free (ref-counted) private key. --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 639e99d0e2..ae9e32d2c8 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -177,8 +177,8 @@ Handle SecureContext::SetKey(const Arguments& args) { } SSL_CTX_use_PrivateKey(sc->ctx_, key); + EVP_PKEY_free(key); BIO_free(bio); - // XXX Free key? return True(); }