diff --git a/lib/context.c b/lib/context.c index 3843824f..442fd132 100644 --- a/lib/context.c +++ b/lib/context.c @@ -1790,7 +1790,7 @@ lws_context_destroy2(struct lws_context *context) lws_check_deferred_free(context, 1); #if LWS_MAX_SMP > 1 - pthread_mutex_destroy(&context->lock, NULL); + pthread_mutex_destroy(&context->lock); #endif lws_free(context);