Pārlūkot izejas kodu

Merge branch 'master' of https://github.com/civetweb/civetweb into HTTP2

bel2125 5 gadi atpakaļ
vecāks
revīzija
a75e7f6d52
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/civetweb.c

+ 2 - 0
src/civetweb.c

@@ -17141,10 +17141,12 @@ mg_close_connection(struct mg_connection *conn)
 		(void)pthread_mutex_destroy(&conn->mutex);
 		mg_free(conn);
 	} else if (conn->phys_ctx->context_type == CONTEXT_HTTP_CLIENT) {
+		(void)pthread_mutex_destroy(&conn->mutex);
 		mg_free(conn);
 	}
 #else
 	if (conn->phys_ctx->context_type == CONTEXT_HTTP_CLIENT) { /* Client */
+		(void)pthread_mutex_destroy(&conn->mutex);
 		mg_free(conn);
 	}
 #endif /* defined(USE_WEBSOCKET) */