From 06ffec1c3f9e566993d372cc686c8ae7307c5de0 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 20 Mar 2008 09:31:05 +0000 Subject: bugfix: fixed some minor memory leaks --- debug.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'debug.c') 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); } -- cgit