From 1a51a84a9404a30ba7fb828854e3cc01bdca0fe3 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Wed, 10 Aug 2016 14:48:19 +0200 Subject: [PATCH] sia: small mutex fix on errors --- ccminer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccminer.cpp b/ccminer.cpp index f6b71fe..8480db1 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -2603,9 +2603,9 @@ longpoll_retry: pthread_mutex_lock(&g_work_lock); if (sia_work_decode(sia_header, &g_work)) { g_work_time = time(NULL); - pthread_mutex_unlock(&g_work_lock); } free(sia_header); + pthread_mutex_unlock(&g_work_lock); } continue; }