Преглед на файлове

free-ing allocated SSL mutexes

valenok преди 15 години
родител
ревизия
9b5de49437
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      mongoose.c

+ 3 - 0
mongoose.c

@@ -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);