summaryrefslogtreecommitdiffstats
path: root/runtime/wtp.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/wtp.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/wtp.c')
-rw-r--r--runtime/wtp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/wtp.c b/runtime/wtp.c
index 04eb974f..df39daa3 100644
--- a/runtime/wtp.c
+++ b/runtime/wtp.c
@@ -151,8 +151,7 @@ CODESTARTobjDestruct(wtp)
pthread_mutex_destroy(&pThis->mut);
pthread_mutex_destroy(&pThis->mutThrdShutdwn);
- if(pThis->pszDbgHdr != NULL)
- free(pThis->pszDbgHdr);
+ free(pThis->pszDbgHdr);
ENDobjDestruct(wtp)