mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-22 11:36:21 +00:00
protected free(ssl_mutexes) with ifndef NO_SSL
This commit is contained in:
1 parent
9b5de49437
commit
d475188a3d
1 file changed
+2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user