summaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index 350bb6fb..29c65cf1 100644
--- a/debug.c
+++ b/debug.c
@@ -660,7 +660,9 @@ static void dbgCallStackDestruct(void *arg)
free(pThrd->pszThrdName);
}
+ pthread_mutex_lock(&mutCallStack);
DLL_Del(CallStack, pThrd);
+ pthread_mutex_unlock(&mutCallStack);
}