about summary refs log tree commit diff stats
path: root/src/custommem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/custommem.c')
-rw-r--r--src/custommem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/custommem.c b/src/custommem.c
index 8bc25ac0..bfedc35a 100644
--- a/src/custommem.c
+++ b/src/custommem.c
@@ -898,9 +898,8 @@ int unlockCustommemMutex()
     int ret = 0;
     int i = 0;
     #define GO(A, B)                    \
-        i = checkMutex(&A);             \
+        i = checkUnlockMutex(&A);       \
         if(i) {                         \
-            pthread_mutex_unlock(&A);   \
             ret|=(1<<B);                \
         }
     GO(mutex_blocks, 0)