summaryrefslogtreecommitdiffstats
path: root/runtime/wti.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-10 18:05:24 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-10 18:05:24 +0200
commit1dbdee7c774dd20e4653efc6871ddef5adce2785 (patch)
tree2a8ac42118550992e2e342a951330e2ffb5fa332 /runtime/wti.c
parent0290be816e683a711fc3c3a73a2ec79b804cfc8b (diff)
downloadrsyslog-1dbdee7c774dd20e4653efc6871ddef5adce2785.tar.gz
rsyslog-1dbdee7c774dd20e4653efc6871ddef5adce2785.tar.xz
rsyslog-1dbdee7c774dd20e4653efc6871ddef5adce2785.zip
fixed a small memory leak...
and another problem, both introduced today. Also did some general cleanup.
Diffstat (limited to 'runtime/wti.c')
-rw-r--r--runtime/wti.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/wti.c b/runtime/wti.c
index 544bffa7..18767ea1 100644
--- a/runtime/wti.c
+++ b/runtime/wti.c
@@ -201,8 +201,7 @@ CODESTARTobjDestruct(wti)
pthread_cond_destroy(&pThis->condExitDone);
pthread_mutex_destroy(&pThis->mut);
- if(pThis->pszDbgHdr != NULL)
- free(pThis->pszDbgHdr);
+ free(pThis->pszDbgHdr);
ENDobjDestruct(wti)