free Mutex

pull/3855/head
Hideki Miyazaki 2021-03-10 23:33:18 +09:00
parent 2d79578eda
commit f9c9de5855
No known key found for this signature in database
GPG Key ID: 7EB19ED9B9D5AC28
2 changed files with 3 additions and 0 deletions

View File

@ -1990,7 +1990,9 @@ void SSL_CtxResourceFree(WOLFSSL_CTX* ctx)
if (ctx->x509_store.lookup.dirs->dir_entry) {
wolfSSL_sk_BY_DIR_entry_free(ctx->x509_store.lookup.dirs->dir_entry);
}
#endif
wc_FreeMutex(&ctx->x509_store.lookup.dirs->lock);
XFREE(ctx->x509_store.lookup.dirs, ctx->heap, DYNAMIC_TYPE_OPENSSL);
}
#endif

View File

@ -25894,6 +25894,7 @@ void wolfSSL_X509_STORE_free(WOLFSSL_X509_STORE* store)
wolfSSL_sk_BY_DIR_entry_free(store->lookup.dirs->dir_entry);
}
#endif
wc_FreeMutex(&store->lookup.dirs->lock);
XFREE(store->lookup.dirs, NULL, DYNAMIC_TYPE_OPENSSL);
store->lookup.dirs = NULL;
}