Remove unnecessary call to X509_STORE_free

This commit is contained in:
Ryan Dahl 2010-12-01 01:40:39 -08:00
parent 504a80dc6d
commit 28a86c3e56
2 changed files with 3 additions and 4 deletions

View File

@ -264,6 +264,7 @@ Handle<Value> SecureContext::Close(const Arguments& args) {
if (sc->ctx_ != NULL) {
SSL_CTX_free(sc->ctx_);
sc->ctx_ = NULL;
sc->ca_store_ = NULL;
return True();
}

View File

@ -43,11 +43,9 @@ class SecureContext : ObjectWrap {
if (ctx_) {
SSL_CTX_free(ctx_);
ctx_ = NULL;
}
if (ca_store_) {
X509_STORE_free(ca_store_);
ca_store_ = NULL;
} else {
assert(ca_store_ == NULL);
}
}