Free (ref-counted) private key.
This commit is contained in:
parent
8275d7cd34
commit
54b1f8028a
@ -177,8 +177,8 @@ Handle<Value> SecureContext::SetKey(const Arguments& args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SSL_CTX_use_PrivateKey(sc->ctx_, key);
|
SSL_CTX_use_PrivateKey(sc->ctx_, key);
|
||||||
|
EVP_PKEY_free(key);
|
||||||
BIO_free(bio);
|
BIO_free(bio);
|
||||||
// XXX Free key?
|
|
||||||
|
|
||||||
return True();
|
return True();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user