forked from wolfSSL/wolfssl
free Mutex
This commit is contained in:
@ -1990,7 +1990,9 @@ void SSL_CtxResourceFree(WOLFSSL_CTX* ctx)
|
|||||||
if (ctx->x509_store.lookup.dirs->dir_entry) {
|
if (ctx->x509_store.lookup.dirs->dir_entry) {
|
||||||
wolfSSL_sk_BY_DIR_entry_free(ctx->x509_store.lookup.dirs->dir_entry);
|
wolfSSL_sk_BY_DIR_entry_free(ctx->x509_store.lookup.dirs->dir_entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
wc_FreeMutex(&ctx->x509_store.lookup.dirs->lock);
|
||||||
XFREE(ctx->x509_store.lookup.dirs, ctx->heap, DYNAMIC_TYPE_OPENSSL);
|
XFREE(ctx->x509_store.lookup.dirs, ctx->heap, DYNAMIC_TYPE_OPENSSL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -25894,6 +25894,7 @@ void wolfSSL_X509_STORE_free(WOLFSSL_X509_STORE* store)
|
|||||||
wolfSSL_sk_BY_DIR_entry_free(store->lookup.dirs->dir_entry);
|
wolfSSL_sk_BY_DIR_entry_free(store->lookup.dirs->dir_entry);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
wc_FreeMutex(&store->lookup.dirs->lock);
|
||||||
XFREE(store->lookup.dirs, NULL, DYNAMIC_TYPE_OPENSSL);
|
XFREE(store->lookup.dirs, NULL, DYNAMIC_TYPE_OPENSSL);
|
||||||
store->lookup.dirs = NULL;
|
store->lookup.dirs = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user