diff --git a/src/node_crypto.cc b/src/node_crypto.cc index fffe6b6438..c902bcb7aa 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -730,6 +730,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);