summaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-20 09:31:05 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-20 09:31:05 +0000
commit06ffec1c3f9e566993d372cc686c8ae7307c5de0 (patch)
tree5bbc3fe7bec322540318ec2d2a564c5f09c48b71 /debug.c
parenta00b06ea93a91f784cf8b41fc493e589a14a80b4 (diff)
downloadrsyslog-06ffec1c3f9e566993d372cc686c8ae7307c5de0.tar.gz
rsyslog-06ffec1c3f9e566993d372cc686c8ae7307c5de0.tar.xz
rsyslog-06ffec1c3f9e566993d372cc686c8ae7307c5de0.zip
bugfix: fixed some minor memory leaks
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);
}