From 4c299ad4a8e450624777d5236cc1031e39f14adc Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 6 Feb 2018 08:54:45 +0800 Subject: [PATCH] pthread: fix destroy call https://github.com/warmcat/libwebsockets/issues/1172 --- lib/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);