Remove unnecessary call to X509_STORE_free
This commit is contained in:
parent
504a80dc6d
commit
28a86c3e56
@ -264,6 +264,7 @@ Handle<Value> SecureContext::Close(const Arguments& args) {
|
|||||||
if (sc->ctx_ != NULL) {
|
if (sc->ctx_ != NULL) {
|
||||||
SSL_CTX_free(sc->ctx_);
|
SSL_CTX_free(sc->ctx_);
|
||||||
sc->ctx_ = NULL;
|
sc->ctx_ = NULL;
|
||||||
|
sc->ca_store_ = NULL;
|
||||||
return True();
|
return True();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,11 +43,9 @@ class SecureContext : ObjectWrap {
|
|||||||
if (ctx_) {
|
if (ctx_) {
|
||||||
SSL_CTX_free(ctx_);
|
SSL_CTX_free(ctx_);
|
||||||
ctx_ = NULL;
|
ctx_ = NULL;
|
||||||
}
|
|
||||||
|
|
||||||
if (ca_store_) {
|
|
||||||
X509_STORE_free(ca_store_);
|
|
||||||
ca_store_ = NULL;
|
ca_store_ = NULL;
|
||||||
|
} else {
|
||||||
|
assert(ca_store_ == NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user