mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-27 20:48:29 +00:00
free-ing allocated SSL mutexes
This commit is contained in:
1 parent
ea71faf71d
commit
9b5de49437
1 file changed
+3
@@ -3960,6 +3960,9 @@ 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);
|
||||||
}
|
}
|
||||||
|
if (ssl_mutexes != NULL) {
|
||||||
|
free(ssl_mutexes);
|
||||||
|
}
|
||||||
|
|
||||||
// Deallocate context itself
|
// Deallocate context itself
|
||||||
free(ctx);
|
free(ctx);
|
||||||
|
|||||||
Reference in new issue
Block a user