diff --git a/src/node_crypto.cc b/src/node_crypto.cc index b5b5ae41ba..a609c4f9f3 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -710,6 +710,7 @@ Handle SecureContext::LoadPKCS12(const Arguments& args) { X509_STORE_add_cert(sc->ca_store_, x509); SSL_CTX_add_client_CA(sc->ctx_, x509); + X509_free(x509); } EVP_PKEY_free(pkey);