free-ing allocated SSL mutexes

This commit is contained in:
valenok 2010-09-12 22:44:02 +01:00
parent ea71faf71d
commit 9b5de49437

View File

@ -3960,6 +3960,9 @@ static void free_context(struct mg_context *ctx) {
if (ctx->ssl_ctx != NULL) {
SSL_CTX_free(ctx->ssl_ctx);
}
if (ssl_mutexes != NULL) {
free(ssl_mutexes);
}
// Deallocate context itself
free(ctx);