summaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index 44f8bbd0..74dffe9f 100644
--- a/debug.c
+++ b/debug.c
@@ -657,6 +657,10 @@ static void dbgCallStackDestruct(void *arg)
dbgThrdInfo_t *pThrd = (dbgThrdInfo_t*) arg;
dbgprintf("destructor for debug call stack %p called\n", pThrd);
+ if(pThrd->pszThrdName != NULL) {
+ free(pThrd->pszThrdName);
+ }
+
DLL_Del(CallStack, pThrd);
}