Commit d475188a authored by valenok's avatar valenok

protected free(ssl_mutexes) with ifndef NO_SSL

parent 9b5de494
...@@ -3960,9 +3960,11 @@ static void free_context(struct mg_context *ctx) { ...@@ -3960,9 +3960,11 @@ static void free_context(struct mg_context *ctx) {
if (ctx->ssl_ctx != NULL) { if (ctx->ssl_ctx != NULL) {
SSL_CTX_free(ctx->ssl_ctx); SSL_CTX_free(ctx->ssl_ctx);
} }
#ifndef NO_SSL
if (ssl_mutexes != NULL) { if (ssl_mutexes != NULL) {
free(ssl_mutexes); free(ssl_mutexes);
} }
#endif // !NO_SSL
// Deallocate context itself // Deallocate context itself
free(ctx); free(ctx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment