From d475188a3d88769eb84af295f13563626452c1df Mon Sep 17 00:00:00 2001 From: valenok Date: Tue, 14 Sep 2010 11:16:30 +0100 Subject: [PATCH] protected free(ssl_mutexes) with ifndef NO_SSL --- mongoose.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mongoose.c b/mongoose.c index a15538f8..6638db9c 100644 --- a/mongoose.c +++ b/mongoose.c @@ -3960,9 +3960,11 @@ static void free_context(struct mg_context *ctx) { if (ctx->ssl_ctx != NULL) { SSL_CTX_free(ctx->ssl_ctx); } +#ifndef NO_SSL if (ssl_mutexes != NULL) { free(ssl_mutexes); } +#endif // !NO_SSL // Deallocate context itself free(ctx);