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