From 1e7f5b5b2b7df15e1c5572a736d094b66ad09bac Mon Sep 17 00:00:00 2001 From: angelfromhell Date: Wed, 20 Dec 2017 10:42:23 +0800 Subject: [PATCH] pthreads: fix context destroy api ref --- lib/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);