diff --git a/lib/context.c b/lib/context.c index f67476b1e..9f221f50f 100644 --- a/lib/context.c +++ b/lib/context.c @@ -1621,7 +1621,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);